From f70bce113d3a14918a1bb37c728943a67a37a919 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Feb 2020 23:42:40 +0000 Subject: [PATCH] BASE_HREF is always defined, but sometimes defined as null --- core/polyfills.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/polyfills.php b/core/polyfills.php index 7a3af678..ae9125f6 100644 --- a/core/polyfills.php +++ b/core/polyfills.php @@ -371,7 +371,7 @@ function zglob(string $pattern): array */ function get_base_href(): string { - if (defined("BASE_HREF")) { + if (defined("BASE_HREF") && !empty(BASE_HREF)) { return BASE_HREF; } $possible_vars = ['SCRIPT_NAME', 'PHP_SELF', 'PATH_INFO', 'ORIG_PATH_INFO'];