1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Bugfix: Avoid inadvertent link loop for bots on login page

This commit is contained in:
Starbeamrainbowlabs 2019-12-19 15:36:41 +00:00
parent e4eee4e281
commit 23f526baaa
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -455,7 +455,7 @@ class page_renderer
} }
else { else {
$returnto_url = $env->action !== "logout" ? $_SERVER["REQUEST_URI"] : "?action=view&page=" . rawurlencode($settings->defaultpage); $returnto_url = $env->action !== "logout" ? $_SERVER["REQUEST_URI"] : "?action=view&page=" . rawurlencode($settings->defaultpage);
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($returnto_url) . "'>Login</a></span>"; $result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($returnto_url) . "' rel='nofollow'>Login</a></span>";
} }
break; break;