fix edge case on ddg wtf is this shit

This commit is contained in:
2026-10-18 01:00:56 -04:00
parent e4ce351b37
commit fcf9f7a0b9
+3
View File
@@ -354,6 +354,8 @@ class ddg{
public function web($get){ public function web($get){
throw new Exception("failure");
if($get["npt"]){ if($get["npt"]){
[$raw_data, $proxy] = $this->backend->get($get["npt"], "web"); [$raw_data, $proxy] = $this->backend->get($get["npt"], "web");
@@ -370,6 +372,7 @@ class ddg{
// we have $get["s"] // we have $get["s"]
if( if(
strpos($get["s"], "email") !== false || // contains word "email" ?? lol
strpos($get["s"], "\"") !== false || // contains quotes strpos($get["s"], "\"") !== false || // contains quotes
strpos($get["s"], ":") !== false // contains potential site: operator or whatever the fuck strpos($get["s"], ":") !== false // contains potential site: operator or whatever the fuck
){ ){