FIX: Revamped security measures
[phorkie.git] / www / edit.php
index 226b774e056f5040c6306a1e11aa942662b69341..b925f0b0a95fb434175ff67e511d63a32818cd02 100644 (file)
@@ -3,16 +3,13 @@ namespace phorkie;
 /**
  * Edit paste contents
  */
+$pageRequiresLogin = '1';
 require_once 'www-header.php';
-if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
-    require_once 'secure.php';
-}
-
 $repo = new Repository();
 $repo->loadFromRequest();
 
 $repopo = new Repository_Post($repo);
-if ($repopo->process($_POST)) {
+if ($repopo->process($_POST, $_SESSION)) {
     redirect($repo->getLink('display'));
 }