Detect qwant captcha: (fdd44dd373)
This commit is contained in:
FbIN Support 2026-03-30 22:43:00 +05:30
commit fc491d65f5

View file

@ -905,6 +905,17 @@ class qwant{
throw new Exception("Qwant returned an API error");
}
if(
isset($json["url"]) &&
preg_match(
'/captcha/i',
$json["url"]
)
){
throw new Exception("Qwant returned a captcha redirect");
}
}
private function limitstrlen($text){