X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/77a14f71a1fabf39d8b74293a7b9efd27341b1cb..d4b4ac3445388cb47ecd0098a6b932a4491074b7:/edit.php?ds=inline diff --git a/edit.php b/edit.php index 28d866b..1285959 100755 --- a/edit.php +++ b/edit.php @@ -1,4 +1,3 @@ -#!/usr/bin/php-cgi '."\n\n"; -$append = "\n".''."\n"; +$rootpath = str_repeat('../', substr_count($filename, '/')); +$prepend = "\n\n"; +$append = "\n"; if (!file_put_contents($filename, $prepend . $upload . $append)) abort('500 save error', "fout bij schrijven van $filename");