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 84d382b commit b9f1e61Copy full SHA for b9f1e61
phpserver/router.php
@@ -32,14 +32,10 @@
32
echo 'debug: '.$val.PHP_EOL.'<br/>'.PHP_EOL;
33
};
34
35
-/**
36
- * Caution, this is very experimental stuff
37
- * no guarantee for working result
38
- * has tons of potential big security holes
39
- */
+/* Note: the code below is experimental and not intended to be used outside development environment.
+The code is protected against running outside of PHP built-in web server. */
40
41
if (php_sapi_name() === 'cli-server') {
42
-
43
$debug($_SERVER["REQUEST_URI"]);
44
if (preg_match('/^\/(index|get|static)\.php(\/)?/', $_SERVER["REQUEST_URI"])) {
45
return false; // serve the requested resource as-is.
0 commit comments