From adbeb42c2c885be4d97226c10a91a50a34ae3597 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 17 Jan 2019 14:24:07 +0100 Subject: [PATCH] Fix colorizeSvg with transformations that contain a comma (,) Signed-off-by: Joas Schilling --- lib/private/Template/IconsCacher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Template/IconsCacher.php b/lib/private/Template/IconsCacher.php index 0d838c4d06d..9cd4f8bca10 100644 --- a/lib/private/Template/IconsCacher.php +++ b/lib/private/Template/IconsCacher.php @@ -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