]> git.wh0rd.org - tt-rss.git/commitdiff
fix previous, again
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Feb 2017 17:23:32 +0000 (20:23 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Feb 2017 17:23:52 +0000 (20:23 +0300)
plugins/af_zz_imgproxy/init.php

index 9ef813ce81f50154c3bc9ef26806fe9bfb637fd7..2102370e3ce9b53c289de34b12edb981c86c3588 100644 (file)
@@ -24,7 +24,7 @@ class Af_Zz_ImgProxy extends Plugin {
        }
 
        function hook_enclosure_entry($enc) {
-               if (preg_match("/image/", $enc["type"]) || preg_match("/\.(jpg|png|gif|bmp)/i", $enc["filename"])) {
+               if (preg_match("/image/", $enc["content_type"]) || preg_match("/\.(jpe?g|png|gif|bmp)$/i", $enc["filename"])) {
                        $proxy_all = $this->host->get($this, "proxy_all");
 
                        $enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all);