X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=blobdiff_plain;f=index.php;h=03989d6915eba6ae070a10d14e92ea8a4d2bb68d;hp=a05287dc95c3f181f5afe5c4ca7297124778bfb8;hb=4c7e1533e440cb6c88756a5677bf70f9a058e724;hpb=3287102a856be64262a9db0c98e7be7f9c26dbb8 diff --git a/index.php b/index.php index a05287d..03989d6 100644 --- a/index.php +++ b/index.php @@ -103,6 +103,11 @@ $otherFiles = array(); $realDir = IMAGES_DIR.$shortPath; +if (! is_dir($realDir)) { + header("HTTP/1.1 404 Not Found"); + die("Directory Not Found"); +} + foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..') { if (is_dir("$realDir/$file"))