From fcf9f7a0b9c4419f313eecf225556c175dc67027 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 18 Oct 2026 01:00:56 -0400 Subject: [PATCH] fix edge case on ddg wtf is this shit --- scraper/ddg.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scraper/ddg.php b/scraper/ddg.php index 6421726..3759129 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -354,6 +354,8 @@ class ddg{ public function web($get){ + throw new Exception("failure"); + if($get["npt"]){ [$raw_data, $proxy] = $this->backend->get($get["npt"], "web"); @@ -370,6 +372,7 @@ class ddg{ // we have $get["s"] if( + strpos($get["s"], "email") !== false || // contains word "email" ?? lol strpos($get["s"], "\"") !== false || // contains quotes strpos($get["s"], ":") !== false // contains potential site: operator or whatever the fuck ){