forked from lolcat/4get
1
0
Fork 0

error handling bug

This commit is contained in:
lolcat 2024-03-30 00:03:41 -04:00
parent 573a11a708
commit 0f2f97e5a3
1 changed files with 2 additions and 4 deletions

View File

@ -117,11 +117,9 @@ class frontend{
// bot detected !!
apcu_inc("captcha_gen");
$null = null;
$this->drawerror(
"Tshh, blocked!",
'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.',
microtime(true)
'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.'
);
die();
}
@ -144,7 +142,7 @@ class frontend{
die();
}
public function drawscrapererror($error, $get, $target, $timetaken){
public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){
$this->drawerror(
"Shit",