summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-08-30 20:00:13 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-02 08:37:55 +0200
commita45ec3d32430f40be93fa5f09832917b82c83f15 (patch)
treebdd333db314d26f5018217cb79c255cf9fac405d /core/Controller
parentc7e81e17c86a6e6beff433238a6923f5d931c22f (diff)
downloadnextcloud-server-a45ec3d32430f40be93fa5f09832917b82c83f15.tar.gz
nextcloud-server-a45ec3d32430f40be93fa5f09832917b82c83f15.zip
Refactors the scss svg functions
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/SvgController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Controller/SvgController.php b/core/Controller/SvgController.php
index f0fc1dac4d4..c6bf7b94da3 100644
--- a/core/Controller/SvgController.php
+++ b/core/Controller/SvgController.php
@@ -29,7 +29,6 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\NotFoundResponse;
use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\Files\NotFoundException;
use OCP\App\IAppManager;
use OCP\IRequest;
@@ -99,7 +98,6 @@ class SvgController extends Controller {
return $this->getSvg($path, $color, $fileName);
}
-
/**
* Generate svg from filename with the requested color
*
@@ -119,7 +117,7 @@ class SvgController extends Controller {
}
// 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