mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed login problem in French
This commit is contained in:
parent
1c08916439
commit
377e51aabe
@ -26366,8 +26366,10 @@ BOOL check_login(LOGBOOK *lbs, const char *sid) {
|
|||||||
if (!skip_sid_check && !sid_check(sid, user_name)) {
|
if (!skip_sid_check && !sid_check(sid, user_name)) {
|
||||||
if (isparam("redir"))
|
if (isparam("redir"))
|
||||||
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));
|
||||||
|
url_decode(str);
|
||||||
|
}
|
||||||
/* avoid recursive loops with ?cmd=Login */
|
/* avoid recursive loops with ?cmd=Login */
|
||||||
if (stristr(str, loc("Login")))
|
if (stristr(str, loc("Login")))
|
||||||
str[0] = 0;
|
str[0] = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user