Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / delete.php
index d9ee2511f6ba2b0d37a24b228ef7e47f369e4144..e0e8d9fcba4b6b4a9020721a5988ec0dc13f2917 100644 (file)
@@ -3,7 +3,7 @@ namespace phorkie;
 /**
  * Delete paste or ask for deletion
  */
-$secureAtLevel = '1';
+$reqWritePermissions = true;
 require_once 'www-header.php';
 
 $repo = new Repository();
@@ -14,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(