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;