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