X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a73791f16d10ea0e2c477f29d9049d75516aa774..e0f69ba3ebc233b416eb83553bb9460075195d1a:/www/delete.php diff --git a/www/delete.php b/www/delete.php index f332028..e0e8d9f 100644 --- a/www/delete.php +++ b/www/delete.php @@ -3,10 +3,8 @@ namespace phorkie; /** * Delete paste or ask for deletion */ +$reqWritePermissions = true; require_once 'www-header.php'; -if ($GLOBALS['phorkie']['auth']['secure'] > 0) { - require_once 'secure.php'; -} $repo = new Repository(); $repo->loadFromRequest(); @@ -16,7 +14,7 @@ if (isset($_GET['confirm']) && $_GET['confirm'] == 1) { throw new Exception_Input('Deleting only possible via POST'); } $repo->delete(); - redirect('/'); + redirect(Tools::fullUrl()); } render(