Update ext/user/main.php
Also don't return to same page if page is "user_admin/login". Otherwise it can occur if user first failed to log in with the correct credentials
This commit is contained in:
parent
62ad4c0ecb
commit
55b0919465
@ -337,7 +337,8 @@ class UserPage extends Extension {
|
||||
$page->set_mode("redirect");
|
||||
|
||||
// Try returning to previous page
|
||||
if (isset($_SERVER['HTTP_REFERER']) && !strstr($_SERVER['HTTP_REFERER'], "user_admin/create"))
|
||||
if (isset($_SERVER['HTTP_REFERER']) && !strstr($_SERVER['HTTP_REFERER'], "user_admin/create") &&
|
||||
!strstr($_SERVER['HTTP_REFERER'], "user_admin/login"))
|
||||
$page->set_redirect ($_SERVER['HTTP_REFERER']);
|
||||
else
|
||||
$page->set_redirect(make_link("user"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user