浏览代码

fix edge case on ddg wtf is this shit

lolcat 3 周之前
父节点
当前提交
fcf9f7a0b9
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      scraper/ddg.php

+ 3 - 0
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
 			){