mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2025-08-19 11:18:08 -04:00
handle google captcha
This commit is contained in:
parent
b61bc6d07c
commit
037566bbba
1 changed files with 4 additions and 4 deletions
|
@ -2973,14 +2973,14 @@ class google{
|
|||
|
||||
private function detect_sorry(){
|
||||
|
||||
$recaptcha =
|
||||
$captcha_form =
|
||||
$this->fuckhtml
|
||||
->getElementById(
|
||||
"recaptcha",
|
||||
"div"
|
||||
"captcha-form",
|
||||
"form"
|
||||
);
|
||||
|
||||
if($recaptcha !== false){
|
||||
if($captcha_form !== false){
|
||||
|
||||
throw new Exception("Google returned a captcha");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue