From d0a1c3cf81bcbe7927a713842be9bcc8e435b494 Mon Sep 17 00:00:00 2001 From: NadirRoGue Date: Wed, 1 Jun 2016 12:03:03 +0200 Subject: [PATCH] [Patch] Fix for user uid and gid on internal scripts execution --- lib/private/files/objectstore/eosutil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/objectstore/eosutil.php b/lib/private/files/objectstore/eosutil.php index 90b0277b1c5c..fe2db1ce406a 100644 --- a/lib/private/files/objectstore/eosutil.php +++ b/lib/private/files/objectstore/eosutil.php @@ -223,7 +223,7 @@ private static function isSharedLinkGuest() // it return the id and gid of a normal user or false in other case, including the id is 0 (root) to avoid security leaks public static function getUidAndGid($username) { // VERIFIED - if(self::$internalScript || (!$username && self::isSharedLinkGuest())) + if(!$username && (self::$internalScript || self::isSharedLinkGuest())) { return [0,0]; }