Chrome and checklogin.php Weird behaviour

Bugs in eFa 4
Post Reply
User avatar
plopperdeplop
Posts: 5
Joined: 30 Jul 2017 20:20

Chrome and checklogin.php Weird behaviour

Post by plopperdeplop » 17 Apr 2021 15:16

So when I try to login to from Chrome Mailscanner with my admin account I get an error:

Login Page Timeout
Pleas Try again.

Test with inprivate browsing or another browser (e.g. Edge) does not yield this error and works fine. Issue seems related to Chrome and checklogin.php.

After some digging I found a piece of code in checklogin.php starting on line 40 and ending on 43.

--
> if (false === checkToken($_POST['token'])) {
> header('Location: login.php?error=pagetimeout');
> die();
> }

As workaround I commented the lines out like this in checklogin.php; and then Chrome works fine, and also other browsers ?

// if (false === checkToken($_POST['token'])) {
// header('Location: login.php?error=pagetimeout');
// die();
// }

To me this seems a bit odd, since the checkToken function call does not seem to behave very Odd ??? Unless Chrome treats token not as StringType. Which is very unlikely since the PHP code runs on the Linux Server. Any idea's ?

Post Reply