Extend regex for enclosure images (#6653)

fix https://github.com/FreshRSS/FreshRSS/discussions/6652
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2024-07-24 19:34:18 +02:00
1 parent da482165fd
commit 3dca6ab1ee
1 file changed
+1 -1
+1 -1
View File
@@ -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));
}
/**