diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-01-17 15:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 15:57:34 +0100 |
commit | c352bb5416d28c05ca11c3a22c093b66bddc61a1 (patch) | |
tree | 28367e0507103f5c1f4ca2a16dc908a3a1f1597a | |
parent | ecc37f5faf53fb873aabddca5487caffda7d5685 (diff) | |
parent | adbeb42c2c885be4d97226c10a91a50a34ae3597 (diff) | |
download | nextcloud-server-c352bb5416d28c05ca11c3a22c093b66bddc61a1.tar.gz nextcloud-server-c352bb5416d28c05ca11c3a22c093b66bddc61a1.zip |
Merge pull request #13650 from nextcloud/bugfix/noid/fix-colorizeSvg-with-transformations-containing-commas
Fix colorizeSvg with transformations that contain a comma (,)
-rw-r--r-- | lib/private/Template/IconsCacher.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |