1
0

Proxy fix

This commit is contained in:
2017-03-30 18:32:19 +02:00
parent c275c8f874
commit ffe56bcf9b
2 changed files with 8 additions and 6 deletions

View File

@ -28,10 +28,9 @@ if (PHP_SAPI == 'cli-server') {
// something which should probably be served as a static file
$url = parse_url($_SERVER['REQUEST_URI']);
$file = __DIR__ . $url['path'];
if (is_file($file)) {
return false;
} elseif (pathinfo($url['path'], PATHINFO_EXTENSION) !== "") {
return false;
}
}