summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2022-12-02 07:35:11 +0300
committerAndrew Dolgov <noreply@fakecake.org>2022-12-02 07:35:11 +0300
commitfa9c614ff144153ca1f4c0744fe0bc7d8f3a82ad (patch)
tree1666d5cd573f1e4c96d8a8e5b43ea07a6e5eb775 /classes/handler/public.php
parent824addbc9d3f7bb4c1c94c5b795f9c8ae3211870 (diff)
parent292ca86665d13582028d32d6d40bbb6f4d8f5cc1 (diff)
Merge branch 'master' of git.tt-rss.org:tt-rss/tt-rss
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php4
1 files changed, 2 insertions, 2 deletions
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');