From a355221e7f650b151fe866174152d686c1c2d146 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 28 Nov 2022 17:40:42 +0000 Subject: Consistently get the self URL. This ensures all uses of the self URL get the same normalized/sanitized value. --- classes/sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/sanitizer.php') diff --git a/classes/sanitizer.php b/classes/sanitizer.php index e2055930b..8b4584a28 100644 --- a/classes/sanitizer.php +++ b/classes/sanitizer.php @@ -54,7 +54,7 @@ class Sanitizer { } private static function is_prefix_https(): bool { - return parse_url(Config::get(Config::SELF_URL_PATH), PHP_URL_SCHEME) == 'https'; + return parse_url(Config::get_self_url(), PHP_URL_SCHEME) == 'https'; } /** -- cgit v1.2.3