diff options
author | Joas Schilling <coding@schilljs.com> | 2019-01-17 14:24:07 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-01-17 14:24:07 +0100 |
commit | adbeb42c2c885be4d97226c10a91a50a34ae3597 (patch) | |
tree | e448171d991f265258440f76e64e4d6815090933 /lib | |
parent | cff89c2a44336424121de72640334d3c00878523 (diff) | |
download | nextcloud-server-adbeb42c2c885be4d97226c10a91a50a34ae3597.tar.gz nextcloud-server-adbeb42c2c885be4d97226c10a91a50a34ae3597.zip |
Fix colorizeSvg with transformations that contain a comma (,)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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 |