mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-22 19:24:34 -04:00
Extend regex for enclosure images (#6653)
fix https://github.com/FreshRSS/FreshRSS/discussions/6652
This commit is contained in:
1 parent
da482165fd
commit
3dca6ab1ee
1 file changed
+1
-1
@@ -172,7 +172,7 @@ class FreshRSS_Entry extends Minz_Model {
|
||||
$mime = $enclosure['type'] ?? '';
|
||||
|
||||
return ($elink != '' && $medium === 'image') || strpos($mime, 'image') === 0 ||
|
||||
($mime == '' && $length == 0 && preg_match('/[.](avif|gif|jpe?g|png|svg|webp)$/i', $elink));
|
||||
($mime == '' && $length == 0 && preg_match('/[.](avif|gif|jpe?g|png|svg|webp)([?#]|$)/i', $elink));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user