PEAR Coding Standards intermediate update for files changed
[phorkie.git] / www / edit.php
index 562c97cbd5391f8441e0bf28df2343c8d3068fe5..20e779386a422494db506fcd4b144ab45641f7a4 100644 (file)
@@ -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'));
 }