X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/2b4b34a76f42841e964a549fc64c02ba4f60a3f4..f9ade082ba49cf487af31339afa7aeeb0653af57:/www/edit.php diff --git a/www/edit.php b/www/edit.php index 562c97c..20e7793 100644 --- a/www/edit.php +++ b/www/edit.php @@ -4,12 +4,15 @@ namespace phorkie; * Edit paste contents */ require_once 'www-header.php'; +if ($GLOBALS['phorkie']['auth']['secure'] > 0) { + include_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')); }