summaryrefslogtreecommitdiff
path: root/classes/rpc.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/rpc.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/rpc.php')
-rwxr-xr-xclasses/rpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/rpc.php b/classes/rpc.php
index a2250157a..204b002d5 100755
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -451,7 +451,7 @@ class RPC extends Handler_Protected {
$params["safe_mode"] = !empty($_SESSION["safe_mode"]);
$params["check_for_updates"] = Config::get(Config::CHECK_FOR_UPDATES);
- $params["icons_url"] = Config::get(Config::SELF_URL_PATH) . '/public.php';
+ $params["icons_url"] = Config::get_self_url() . '/public.php';
$params["cookie_lifetime"] = Config::get(Config::SESSION_COOKIE_LIFETIME);
$params["default_view_mode"] = get_pref(Prefs::_DEFAULT_VIEW_MODE);
$params["default_view_limit"] = (int) get_pref(Prefs::_DEFAULT_VIEW_LIMIT);