Commit a835c63f authored by Ludwig Ruderstaller's avatar Ludwig Ruderstaller

Merge branch 'hotfix/match-url-with-additional-parameters' into 'master'

fix bug with urls which contains additional get parameters



See merge request !6
parents 79feba24 2aa82d8d
......@@ -56,7 +56,7 @@ class ResizeUploadedImagesSubscriber implements EventSubscriberInterface
return;
}
$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