X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/607a4d0feac9b4c3a846901371c78b5cd5975300..3f78a38cb23e2bb2609e010f0d3b4dce2d3c1727:/edit.php diff --git a/edit.php b/edit.php old mode 100644 new mode 100755 index 5790696..357d3a4 --- a/edit.php +++ b/edit.php @@ -13,6 +13,8 @@ if (!isset($_SERVER['PATH_INFO']) or strlen($_SERVER['PATH_INFO']) <= 1) $filename = preg_replace('/(?:\.html)?$/', '.html', ltrim($_SERVER['PATH_INFO'], '/'), 1); if (file_exists($filename) and !is_writable($filename)) abort('403 input error', "ongeldige bestandsnaam: $filename"); +if (is_executable($filename)) + abort('403 input error', "onwijzigbaar bestand: $filename"); if (!isset($_POST['body'])) abort('409 input error', "geen inhoud aangeleverd");