mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
Merge pull request #13650 from nextcloud/bugfix/noid/fix-colorizeSvg-with-transformations-containing-commas
Fix colorizeSvg with transformations that contain a comma (,)
This commit is contained in:
commit
c352bb5416
@ -185,7 +185,7 @@ class IconsCacher {
|
||||
*/
|
||||
public function colorizeSvg($svg, $color): string {
|
||||
// add fill (fill is not present on black elements)
|
||||
$fillRe = '/<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;])+)\/>/mi';
|
||||
$fillRe = '/<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;,])+)\/>/mi';
|
||||
$svg = preg_replace($fillRe, '<$1 fill="#' . $color . '"/>', $svg);
|
||||
|
||||
// replace any fill or stroke colors
|
||||
|
Loading…
Reference in New Issue
Block a user