diff options
author | Andrew Dolgov <[email protected]> | 2017-03-23 15:22:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-03-23 15:22:00 +0300 |
commit | dc2c4b13d41d0e243a4da3ef4534de3cb645ec89 (patch) | |
tree | 188fc3de62c446ef1bb617f0136f1928ddfa159c /include/functions2.php | |
parent | 388d4dfa88e843237ebe57e9a0376d0cd58c0f51 (diff) |
when choosing enclosures to embed or rewrite (af_zz_imgproxy) only use content type instead of "filename"-based hacks
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/functions2.php b/include/functions2.php index e00a0ba13..28e182f8d 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2000,8 +2000,7 @@ $rv .= $retval; } else { - if (preg_match("/image/", $entry["type"]) || - preg_match("/\.(jpe?g|png|gif|bmp)/i", $entry["filename"])) { + if (preg_match("/image/", $entry["type"])) { if (!$hide_images) { $encsize = ''; |