mirror of
https://git.bakhai.co.in/FbIN/fossq.git
synced 2026-04-17 19:15:51 +05:30
parent
953e6ac745
commit
fc491d65f5
1 changed files with 11 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue