updated core to 9.5.9

This commit is contained in:
2023-06-20 20:59:00 +02:00
parent f562d9c580
commit 02fc5f228c
10 changed files with 481 additions and 429 deletions

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.