From 9aa98a46a5a85388003b3dcef76dc7c6ef853791 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Jun 2016 19:43:02 +0200 Subject: [PATCH] fix some scrutinizer "bugs" --- api/src/Vfs/Links/StreamWrapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Vfs/Links/StreamWrapper.php b/api/src/Vfs/Links/StreamWrapper.php index a3c3c18c2c..9564a3aa62 100644 --- a/api/src/Vfs/Links/StreamWrapper.php +++ b/api/src/Vfs/Links/StreamWrapper.php @@ -302,7 +302,8 @@ class StreamWrapper extends LinksParent return true; } // create not existing entry directories on the fly - if ($mode[0] != 'r' && !parent::url_stat($dir = Vfs::dirname($url),0) && self::check_extended_acl($dir,Vfs::WRITABLE)) + if ($mode[0] != 'r' && ($dir = Vfs::dirname($url)) && + !parent::url_stat($dir, 0) && self::check_extended_acl($dir, Vfs::WRITABLE)) { self::mkdir($dir,0,STREAM_MKDIR_RECURSIVE); }