updated core to 9.5.11

This commit is contained in:
2024-09-17 12:48:11 +02:00
parent 4a39f21140
commit 902ee2adb3
11 changed files with 1086 additions and 901 deletions
+6
View File
@@ -24,6 +24,12 @@
* @see http://php.net/manual/en/features.commandline.webserver.php
*/
if (PHP_SAPI !== 'cli-server') {
// Bail out if this is not PHP's Development Server.
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
exit;
}
$url = parse_url($_SERVER['REQUEST_URI']);
if (file_exists(__DIR__ . $url['path'])) {
// Serve the requested resource as-is.