From 16ee0b368fcf24b48574172726e32a19c275d691 Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 26 Jul 2023 19:03:06 -0400 Subject: felt quirky, might commit later --- images.php | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'images.php') diff --git a/images.php b/images.php index 67a50e8..2c0799e 100644 --- a/images.php +++ b/images.php @@ -58,32 +58,15 @@ if(count($results["image"]) === 0){ foreach($results["image"] as $image){ - $domain = htmlspecialchars(parse_url($image["url"], PHP_URL_HOST)); - - $c = count($image["source"]) - 1; - - if( - preg_match( - '/^data:/', - $image["source"][$c]["url"] - ) - ){ - - $src = htmlspecialchars($image["source"][$c]["url"]); - }else{ - - $src = "/proxy?i=" . urlencode($image["source"][$c]["url"]) . "&s=thumb"; - } - $payload["images"] .= '
' . '' . -- cgit v1.2.3