diff options
author | 2022-06-18 20:19:32 -0400 | |
---|---|---|
committer | 2022-06-19 02:19:32 +0200 | |
commit | 65e6d9f454021b07f90d6b4800db3747e58f8e3c (patch) | |
tree | a6318aa012e5408904ed7f57dcf7fddf63c9ba47 /lib | |
parent | ce63d8a7062e3aff96a47799ade3dac6143e5493 (diff) | |
download | rss-bridge-65e6d9f454021b07f90d6b4800db3747e58f8e3c.tar.gz rss-bridge-65e6d9f454021b07f90d6b4800db3747e58f8e3c.tar.zst rss-bridge-65e6d9f454021b07f90d6b4800db3747e58f8e3c.zip |
[XPathAbstract] Improve Media Url regex (#2845)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/XPathAbstract.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/XPathAbstract.php b/lib/XPathAbstract.php index 7a56050d..0ca1587b 100644 --- a/lib/XPathAbstract.php +++ b/lib/XPathAbstract.php @@ -532,7 +532,7 @@ abstract class XPathAbstract extends BridgeAbstract { */ protected function cleanMediaUrl($mediaUrl) { - $pattern = '~(?:http(?:s)?:)?[\/a-zA-Z0-9\-_\.\%]+\.(?:jpg|gif|png|jpeg|ico|mp3){1}~i'; + $pattern = '~(?:http(?:s)?:)?[\/a-zA-Z0-9\-=_,\.\%]+\.(?:jpg|gif|png|jpeg|ico|mp3|webp){1}~i'; $result = preg_match($pattern, $mediaUrl, $matches); if(1 !== $result) { return; |