diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-12-28 14:19:13 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-12-30 05:55:45 +0100 |
commit | c0c4443ffc6608ea2917a9c5bec1c0150a94b404 (patch) | |
tree | 9a12ec15ec2e2a76ebde403647936a8fa2494c9d /lib/private/Template | |
parent | b71c9205ef784b7aa55f5f51207f9ba49e077a2f (diff) | |
download | nextcloud-server-c0c4443ffc6608ea2917a9c5bec1c0150a94b404.tar.gz nextcloud-server-c0c4443ffc6608ea2917a9c5bec1c0150a94b404.zip |
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/SCSSCacher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index ddd0131eac2..a4604425544 100644 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -320,7 +320,7 @@ class SCSSCacher { */ private function getWebDir($path, $appName, $serverRoot, $webRoot) { // Detect if path is within server root AND if path is within an app path - if ( !strpos($path, $serverRoot) && $appWebPath = \OC_App::getAppWebPath($appName) ) { + if ( strpos($path, $serverRoot) === false && $appWebPath = \OC_App::getAppWebPath($appName)) { // Get the file path within the app directory $appDirectoryPath = explode($appName, $path)[1]; // Remove the webroot |