]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_zz_imgproxy/init.php
when choosing enclosures to embed or rewrite (af_zz_imgproxy) only use content type...
[tt-rss.git] / plugins / af_zz_imgproxy / init.php
index e0ec2f1745c8919d38dc6aefc130f2afd250cc2d..a07ff5614b8d67c1ca42eb6cbf8a384df194616c 100644 (file)
@@ -23,7 +23,7 @@ class Af_Zz_ImgProxy extends Plugin {
        }
 
        function hook_enclosure_entry($enc) {
-               if (preg_match("/image/", $enc["content_type"]) || preg_match("/\.(jpe?g|png|gif|bmp)$/i", $enc["filename"])) {
+               if (preg_match("/image/", $enc["content_type"])) {
                        $proxy_all = $this->host->get($this, "proxy_all");
 
                        $enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all);