aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-12-02 12:01:01 +0100
committerCarl Schwan <carl@carlschwan.eu>2021-12-02 15:57:53 +0100
commitdfb569f097119ac8b5722607a86cc77e97bff3af (patch)
treeeae669a348404d76e8f24924d7e41cbf8eec90b7 /lib
parent324e0dc36ca1781de27fe30453e30c460cc3dfb4 (diff)
downloadnextcloud-server-dfb569f097119ac8b5722607a86cc77e97bff3af.tar.gz
nextcloud-server-dfb569f097119ac8b5722607a86cc77e97bff3af.zip
Follow upstream security recommandation
See https://scssphp.github.io/scssphp/docs/#security-considerations Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/SCSSCacher.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 0543427f997..536557e7a3d 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -45,7 +45,6 @@ use OCP\ILogger;
use OCP\IMemcache;
use OCP\IURLGenerator;
use ScssPhp\ScssPhp\Compiler;
-use ScssPhp\ScssPhp\Exception\ParserException;
use ScssPhp\ScssPhp\OutputStyle;
class SCSSCacher {
@@ -340,7 +339,7 @@ class SCSSCacher {
'@import "variables.scss";' .
'@import "functions.scss";' .
'@import "' . $fileNameSCSS . '";');
- } catch (ParserException $e) {
+ } catch (\Exception $e) {
$this->logger->logException($e, ['app' => 'scss_cacher']);
return false;
@@ -431,7 +430,7 @@ class SCSSCacher {
$scss = new Compiler();
$scss->compile($variables);
$this->injectedVariables = $variables;
- } catch (ParserException $e) {
+ } catch (\Exception $e) {
$this->logger->logException($e, ['app' => 'scss_cacher']);
}