diff options
| author | 2024-07-24 19:34:18 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:34:18 +0200 | |
| commit | 3dca6ab1eef70e2e6fe19388238f7ec26f3c69af (patch) | |
| tree | 5f1b94d8a8f13ad2d99a73847c3d2a6291a92929 /app/Models/Entry.php | |
| parent | da482165fd14b0f43a64b8129ea307618c1862ee (diff) | |
Extend regex for enclosure images (#6653)
fix https://github.com/FreshRSS/FreshRSS/discussions/6652
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index e102c5c21..e4d728ba4 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -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)); } /** |
