X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f9ade082ba49cf487af31339afa7aeeb0653af57..fc9ddff30bafd071990dfb95c9a8520b457da2e9:/www/delete.php diff --git a/www/delete.php b/www/delete.php index 85f6258..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) { - include_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(