diff --git a/index.php b/index.php index 1fa5736..5f2fcf1 100644 --- a/index.php +++ b/index.php @@ -2937,7 +2937,7 @@ public static function url(string $location = ''): string return ($showHttps ? 'https' : 'http') . '://' . ($_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME']) . ($_SERVER['HTTP_HOST'] ? '' : $serverPort) - . ((dirname($_SERVER['SCRIPT_NAME']) === '/') ? '' : dirname($_SERVER['SCRIPT_NAME'])) + . ((dirname($_SERVER['SCRIPT_NAME']) === DIRECTORY_SEPARATOR) ? '' : dirname($_SERVER['SCRIPT_NAME'])) . '/' . $location; }