- commit
- e9bd8b9cb03029ca65f92db6c43f6cce8c1e4e65
- parent
- de853b0114fe5bc66d5504d4608c8bdad2d1ccfe
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-12 18:32
redirect to parent after delete
Diffstat
| M | index.php | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
@@ -154,7 +154,8 @@ if (isset($_SERVER['REQUEST_METHOD'])) {
154 154 }
155 155 rrmdir("../_content$path");
156 156 rrmdir("..$path");
157 -1 header('Location: ?path=', true, 302);
-1 157 $target = dirname($path);
-1 158 header("Location: ?path=$target", true, 302);
158 159 } else {
159 160 // TODO validate form
160 161 setData($path, $_POST);