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/handler/public.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/handler/public.php') diff --git a/classes/handler/public.php b/classes/handler/public.php index 484f92507..b848b15fe 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -418,7 +418,7 @@ class Handler_Public extends Handler { $return = clean($_REQUEST['return']); - if ($_REQUEST['return'] && mb_strpos($return, Config::get(Config::SELF_URL_PATH)) === 0) { + if ($_REQUEST['return'] && mb_strpos($return, Config::get_self_url()) === 0) { header("Location: " . clean($_REQUEST['return'])); } else { header("Location: " . Config::get_self_url()); @@ -572,7 +572,7 @@ class Handler_Public extends Handler { $tpl->setVariable('LOGIN', $login); $tpl->setVariable('RESETPASS_LINK', $resetpass_link); - $tpl->setVariable('TTRSS_HOST', Config::get(Config::SELF_URL_PATH)); + $tpl->setVariable('TTRSS_HOST', Config::get_self_url()); $tpl->addBlock('message'); -- cgit v1.2.3