aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-09-28 15:27:07 -0400
committerlolcat <will@lolcat.ca>2025-09-28 15:27:07 -0400
commit61deefb75bdaf5e940eefffdd85f058e370623bb (patch)
tree9ee3b7dc66a5845788f0125e19c57df185e99a7b /scraper
parent8198287ec0576989a97e5ead7d5c0a138d1515ad (diff)
fucking operators are blocked too
Diffstat (limited to 'scraper')
-rw-r--r--scraper/ddg.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php
index d5c4a38..af96465 100644
--- a/scraper/ddg.php
+++ b/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);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage