From 76dffa22fa0f90ba389efe1f30339e958278efc0 Mon Sep 17 00:00:00 2001 From: hnhx Date: Tue, 14 Jun 2022 14:06:29 +0200 Subject: [PATCH] image result URLs are now checked for privacy friently frontends --- engines/google/image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/google/image.php b/engines/google/image.php index 5604de7..9bd5e58 100644 --- a/engines/google/image.php +++ b/engines/google/image.php @@ -13,7 +13,9 @@ foreach($xpath->query("//div[@class='isv-r PNCib MSM1fd BUooTd']") as $result) { $image = $xpath->evaluate(".//img[@data-src]", $result)[0]; + $url = $xpath->evaluate(".//a/@href", $result)[0]->textContent; + $url = check_for_privacy_frontend($url); if (!empty($image)) {