Commit 2aa82d8d authored by Niklas de Vries's avatar Niklas de Vries

fix bug with urls which contains additional get parameters

parent 79feba24
......@@ -56,7 +56,7 @@ class ResizeUploadedImagesSubscriber implements EventSubscriberInterface
$pattern = '/<img\s[^>]*?src\s*=\s*[\'\"]([^\'\"]*?)\?mediaId=([0-9]*)[\'\"][^>]*?>/';
$pattern = '/<img\s[^>]*?src\s*=\s*[\'\"]([^\'\"]*?)\?mediaId=([0-9]*).*[\'\"][^>]*?>/';
preg_match_all($pattern, $content, $matches);
foreach ($matches[0] as $index => $imgTag) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment