- commit
- 095a64fc046874b0fc538e60376176e3f636294b
- parent
- 3a76fd7497b609e37cba40fd67d77ad250ac35e9
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-20 21:52
use single-quote strings
Diffstat
| M | index.php | 10 | +++++----- |
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
@@ -308,13 +308,13 @@ function filesView($pupupu, $twig) 308 308 )); 309 309 } elseif (isset($_FILES['file'])) { 310 310 $pupupu->uploadFile($path, $_FILES['file']);311 -1 header("Location: ", true, 302);-1 311 header('Location: ', true, 302); 312 312 } elseif (isset($_POST['folder'])) { 313 313 $pupupu->createFileFolder($path, $_POST['folder']);314 -1 header("Location: ", true, 302);-1 314 header('Location: ', true, 302); 315 315 } elseif (isset($_POST['delete'])) { 316 316 $pupupu->rmFile($path . '/' . $_POST['name']);317 -1 header("Location: ", true, 302);-1 317 header('Location: ', true, 302); 318 318 } else { 319 319 http_response_code(400); 320 320 } @@ -329,7 +329,7 @@ function siteView($pupupu, $twig) 329 329 } else { 330 330 $pupupu->put('/_site', 'yml', $_POST['yml']); 331 331 $pupupu->renderAll();332 -1 header("Location: ", true, 302);-1 332 header('Location: ', true, 302); 333 333 } 334 334 } 335 335 @@ -353,7 +353,7 @@ function pageView($pupupu, $twig) 353 353 } 354 354 $pupupu->rm($path); 355 355 $target = pathDirname($path);356 -1 header("Location: ?", true, 302);-1 356 header('Location: ?', true, 302); 357 357 } else { 358 358 $pupupu->put($path, 'yml', $_POST['yml']); 359 359 $pupupu->put($path, 'md', $_POST['md']);