X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a73791f16d10ea0e2c477f29d9049d75516aa774..dff68e21ac958ebfb8164bca4cb2143c427f4330:/www/edit.php diff --git a/www/edit.php b/www/edit.php index 226b774..897aada 100644 --- a/www/edit.php +++ b/www/edit.php @@ -4,15 +4,12 @@ namespace phorkie; * Edit paste contents */ 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')); }