MDL-55326 core_text: Correct typo3 file permissions
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 27 Mar 2017 07:07:01 +0000 (15:07 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 27 Mar 2017 07:07:01 +0000 (15:07 +0800)
lib/classes/text.php

index 7a44b1b..546dccb 100644 (file)
@@ -89,7 +89,7 @@ class core_text {
         $GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask'] = decoct($CFG->directorypermissions);
 
         // Default mask for Typo
-        $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] = $CFG->directorypermissions;
+        $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] = decoct($CFG->filepermissions);
 
         // This full path constants must be defined too, transforming backslashes
         // to forward slashed because Typo3 requires it.