Fixed file access bug in development mode
This commit is contained in:
parent
45db7e7b93
commit
40d3ec9052
@ -30,6 +30,8 @@ if (PHP_SAPI == 'cli-server') {
|
||||
$file = __DIR__ . $url['path'];
|
||||
if (is_file($file)) {
|
||||
return false;
|
||||
} elseif (pathinfo($url['path'], PATHINFO_EXTENSION) !== "") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user