summaryrefslogtreecommitdiff
path: root/classes/sanitizer.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-11-28 17:40:42 +0000
committerwn_ <[email protected]>2022-11-28 17:40:42 +0000
commita355221e7f650b151fe866174152d686c1c2d146 (patch)
treec72fb6a3261681ec854a61340338fc01b44fdfe0 /classes/sanitizer.php
parent94c49399cc10c1f7001e8c76db7575b70e1fc674 (diff)
Consistently get the self URL.
This ensures all uses of the self URL get the same normalized/sanitized value.
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r--classes/sanitizer.php2
1 files changed, 1 insertions, 1 deletions
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';
}
/**