check if not found file is actually a file

This commit is contained in:
Uwe Steinmann 2019-03-01 09:53:32 +01:00
parent 4f34ff5c5c
commit b4fd9ac804

View File

@ -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;