diff --git a/extension/ezjscore/classes/ezjscpacker.php b/extension/ezjscore/classes/ezjscpacker.php index 0a196152865..3068427d8c3 100644 --- a/extension/ezjscore/classes/ezjscpacker.php +++ b/extension/ezjscore/classes/ezjscpacker.php @@ -515,7 +515,7 @@ static function fixImgPaths( $fileContent, $file ) $newMatchPath .= implode( '/', $cssPathSlice ) . '/'; } $newMatchPath .= str_replace( '../', '', $match ); - $fileContent = str_replace( $match, $newMatchPath, $fileContent ); + $fileContent = preg_replace( "/url\(\s*[\'|\"]?".preg_quote($match, '/')."[\'|\"]?\s*\)/", "url($newMatchPath)", $fileContent ); } } }