diff options
author | Andrew Dolgov <[email protected]> | 2017-02-12 20:23:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-12 20:23:52 +0300 |
commit | 046a0cc7c87edeaf16f54f09f965d0ded2d7bbcb (patch) | |
tree | cf1922b9ea06fccb22c58e94be1d92a1fa3143e1 | |
parent | bc83dcb381b56f8038eec15d8bb0f195bc31c388 (diff) |
fix previous, again
-rw-r--r-- | plugins/af_zz_imgproxy/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 9ef813ce8..2102370e3 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -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); |