Browse Source

fucking operators are blocked too

lolcat 10 months ago
parent
commit
61deefb75b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      scraper/ddg.php

+ 4 - 1
scraper/ddg.php

@@ -370,7 +370,10 @@ class ddg{
 		}else{
 			
 			// we have $get["s"]
-			if(strpos($get["s"], "\"") !== false){
+			if(
+				strpos($get["s"], "\"") !== false || // contains quotes
+				strpos($get["s"], ":") !== false // contains potential site: operator or whatever the fuck
+			){
 				
 				return $this->web_html($get);
 			}