diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2019-01-18 11:06:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 11:06:49 +0300 |
commit | 2c46aab893578f7d560262eeb56cc376569527da (patch) | |
tree | 851b700f40ce06f73335f027b479a48b5764ccab | |
parent | af196c44951d89d7e327b4dc78aeb65d5ae2a06b (diff) | |
parent | f39dacf1fb379b72c177eca45f9245f904c7501a (diff) |
Merge pull request #13653 from nextcloud/backport/13650/stable15
[stable15] 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 aab3295405d..f3620715323 100644 --- a/lib/private/Template/IconsCacher.php +++ b/lib/private/Template/IconsCacher.php @@ -180,7 +180,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 |