mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed recursive loop for login page
SVN revision: 2374
This commit is contained in:
parent
6dccf4c678
commit
6bddcd97ba
@ -25298,7 +25298,6 @@ BOOL check_login(LOGBOOK * lbs, char *sid)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* check for password login (elog & mirroring) */
|
/* check for password login (elog & mirroring) */
|
||||||
skip_sid_check = FALSE;
|
skip_sid_check = FALSE;
|
||||||
if (isparam("unm") && isparam("upwd")) {
|
if (isparam("unm") && isparam("upwd")) {
|
||||||
@ -25318,6 +25317,9 @@ BOOL check_login(LOGBOOK * lbs, char *sid)
|
|||||||
strlcpy(str, getparam("redir"), sizeof(str));
|
strlcpy(str, getparam("redir"), sizeof(str));
|
||||||
else
|
else
|
||||||
strlcpy(str, isparam("cmdline") ? getparam("cmdline") : _cmdline, sizeof(str));
|
strlcpy(str, isparam("cmdline") ? getparam("cmdline") : _cmdline, sizeof(str));
|
||||||
|
/* avoid recursive loops with ?cmd=Login */
|
||||||
|
if (stristr(str, loc("Login")))
|
||||||
|
str[0] = 0;
|
||||||
show_login_page(lbs, str, 0);
|
show_login_page(lbs, str, 0);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user