X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/599086fed1782cf7af74d7745dc3808c4e2ad24a..ab89443fa6d3a9e13476dae2a3a6c23d13ccf9b0:/edit.php diff --git a/edit.php b/edit.php index 80a49eb..3774bfc 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");