mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to stop false positive syslogging on page reload
This commit is contained in:
@@ -4221,6 +4221,13 @@ else {
|
||||
$already_session_id = undef;
|
||||
$method = "GET";
|
||||
$authuser = $baseauthuser = undef;
|
||||
|
||||
# If login page is simply reloaded, with `session_login.cgi` in URL,
|
||||
# without having any parameters sent (user set to empty), don't log
|
||||
# false positive attempt with `Invalid login as from IP` to syslog
|
||||
$nolog = 1 if (!$vu);
|
||||
|
||||
# Send to log if allowed
|
||||
syslog("crit", "%s",
|
||||
($nonexist ? "Non-existent" :
|
||||
$expired ? "Expired" : "Invalid").
|
||||
|
||||
Reference in New Issue
Block a user