mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:05:56 +00:00
when choosing enclosures to embed or rewrite (af_zz_imgproxy) only use content type instead of "filename"-based hacks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user