We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbda58c commit bb9a19aCopy full SHA for bb9a19a
2 files changed
public/index-test.php
@@ -7,7 +7,8 @@
7
// PHP built-in server routing.
8
if (PHP_SAPI === 'cli-server') {
9
// Serve static files as is.
10
- if (is_file(__DIR__ . $_SERVER["REQUEST_URI"])) {
+ $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
11
+ if (is_file(__DIR__ . $path)) {
12
return false;
13
}
14
public/index.php
0 commit comments