aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
Diffstat (limited to 'scraper')
-rw-r--r--scraper/ddg.php2
-rw-r--r--scraper/qwant.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php
index 2729028..7e7fc82 100644
--- a/scraper/ddg.php
+++ b/scraper/ddg.php
@@ -1969,7 +1969,7 @@ class ddg{
$id = $id[1];
}
- return "https://" . $image["host"] . "/th/id/" . $id;
+ return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
}
private function bingratio($width, $height){
diff --git a/scraper/qwant.php b/scraper/qwant.php
index da2afca..ecbd4ec 100644
--- a/scraper/qwant.php
+++ b/scraper/qwant.php
@@ -988,6 +988,6 @@ class qwant{
return $url;
}
- return "https://" . $image["host"] . "/th/id/" . $id;
+ return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
}
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage