Fix typo in code comment

This commit is contained in:
Alexander Aleksandrovič Klimov 2025-02-20 10:17:58 +01:00 committed by GitHub
parent 79971cb1a6
commit db7efab8cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ if (isset($_SERVER['REQUEST_URI'])) {
} }
// Workaround, PHPs internal Webserver seems to mess up SCRIPT_FILENAME // Workaround, PHPs internal Webserver seems to mess up SCRIPT_FILENAME
// as it prefixes it's absolute path with DOCUMENT_ROOT // as it prefixes its absolute path with DOCUMENT_ROOT
if (preg_match('/^PHP .* Development Server/', $_SERVER['SERVER_SOFTWARE'])) { if (preg_match('/^PHP .* Development Server/', $_SERVER['SERVER_SOFTWARE'])) {
$script = basename($_SERVER['SCRIPT_FILENAME']); $script = basename($_SERVER['SCRIPT_FILENAME']);
$_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = '/' . $script; $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = '/' . $script;