1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +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 {
$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;