pupupu

simple static CMS for crappy servers
git clone https://git.ce9e.org/pupupu.git

commit
2611fb375e5871998ea6d03de88c4c5fcfb4bfbc
parent
314c0ea486e97725e2600aa711ef0d8f282bff63
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-10-19 11:14
fix redirect after delete

Diffstat

M index.php 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/index.php b/index.php

@@ -318,7 +318,7 @@ function pageView($pupupu, $twig)
  318   318                 die();
  319   319             }
  320   320             $pupupu->rm($path);
  321    -1             $target = dirname($path);
   -1   321             $target = implode('/', array_slice(explode('/', $path), 0, -1));
  322   322             header("Location: ?path=$target", true, 302);
  323   323         } else {
  324   324             $pupupu->put($path, 'yml', $_POST['yml']);