From a1003a1a902b178db56218d8e91c1a8dfeefc85b Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Tue, 7 Jan 2025 21:46:32 +0100 Subject: [PATCH] Fix regression --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index f36468356b9..e6ad6bab5c4 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7988,7 +7988,7 @@ function dol_mkdir($dir, $dataroot = '', $newmask = '') umask(0); $dirmaskdec = octdec((string) $newmask); if (empty($newmask)) { - $dirmaskdec = getDolGlobalString('MAIN_UMASK', octdec('0755')); + $dirmaskdec = octdec(getDolGlobalString('MAIN_UMASK', '0755')); } $dirmaskdec |= octdec('0111'); // Set x bit required for directories if (!@mkdir($ccdir_osencoded, $dirmaskdec)) {