X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/90783a3ff6a8171f11f15adc7d57925548b1756f..d4b4ac3445388cb47ecd0098a6b932a4491074b7:/edit.php diff --git a/edit.php b/edit.php index 94206bb..1285959 100755 --- a/edit.php +++ b/edit.php @@ -29,7 +29,8 @@ if (!strlen($upload)) { exit; } -$prepend = "\n\n"; +$rootpath = str_repeat('../', substr_count($filename, '/')); +$prepend = "\n\n"; $append = "\n"; if (!file_put_contents($filename, $prepend . $upload . $append))