diff --git a/index.php b/index.php index 8323df83c..757176741 100644 --- a/index.php +++ b/index.php @@ -38,7 +38,7 @@ if(true) { $file = $uri->getPath(); else $file = substr($uri->getPath(), 1); - if(file_exists($file)) { + if(file_exists($file) && is_file($file)) { $_SERVER['SCRIPT_FILENAME'] = basename($file); include($file); exit;