diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-12-02 12:01:01 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-12-02 15:57:53 +0100 |
commit | dfb569f097119ac8b5722607a86cc77e97bff3af (patch) | |
tree | eae669a348404d76e8f24924d7e41cbf8eec90b7 /lib | |
parent | 324e0dc36ca1781de27fe30453e30c460cc3dfb4 (diff) | |
download | nextcloud-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.php | 5 |
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']); } |