1
0

Fixed file access bug in development mode

This commit is contained in:
Christiaan Goossens 2017-03-26 16:06:53 +02:00
parent 45db7e7b93
commit 40d3ec9052

View File

@ -30,6 +30,8 @@ if (PHP_SAPI == 'cli-server') {
$file = __DIR__ . $url['path']; $file = __DIR__ . $url['path'];
if (is_file($file)) { if (is_file($file)) {
return false; return false;
} elseif (pathinfo($url['path'], PATHINFO_EXTENSION) !== "") {
return false;
} }
} }