Apply automatic drupal scaffolding updates

This commit is contained in:
Keegan Rankin 2024-02-12 09:43:56 -08:00
parent ca7b46d5ad
commit 7831090033
6 changed files with 31 additions and 17 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.