* Fixed issue 7052: Permission problem of RTE images
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 6 Jan 2008 20:44:07 +0000 (20:44 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 6 Jan 2008 20:44:07 +0000 (20:44 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2868 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php

index 3fe2f40..692a2d1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,7 +12,7 @@
        * Fixed issue 5952 (complete): Usability Issue with classes wrapped with <> in select lists
        * Added feature 6034: Improvements of inlineCSS: adding classes to inline elements without additional span
        * Fixed issue 6839: sub and sup are added via CSS instead of tags in Safari
-       
+       * Fixed issue 7052: Permission problem of RTE images
 
 2008-01-05  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index 7457bc6..cd1db1e 100644 (file)
@@ -8,6 +8,7 @@
        * Fixed issue 5952 (complete): Usability Issue with classes wrapped with <> in select lists
        * Added feature 6034: Improvements of inlineCSS: adding classes to inline elements without additional span
        * Fixed issue 6839: sub and sup are added via CSS instead of tags in Safari
+       * Fixed issue 7052: Permission problem of RTE images
 
 2008-01-05  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index 70b8b4a..d197793 100644 (file)
@@ -270,6 +270,9 @@ class tx_rtehtmlarea_select_image extends browse_links {
                                $destPath =PATH_site.$this->rteImageStorageDir();
                                if (@is_dir($destPath)) {
                                        $destName = $fileFunc->getUniqueName($basename,$destPath);
+                                       if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
+                                               @chmod($destName, $TYPO3_CONF_VARS['BE']['fileCreateMask']);
+                                       }
                                        @copy($imgInfo[3],$destName);
                                        
                                        $cWidth = t3lib_div::intInRange(t3lib_div::_GP('cWidth'),0,$this->magicMaxWidth);
@@ -282,6 +285,9 @@ class tx_rtehtmlarea_select_image extends browse_links {
                                                $fI=pathinfo($imgI[3]);
                                                $mainBase='RTEmagicC_'.substr(basename($destName),10).'.'.$fI['extension'];
                                                $destName = $fileFunc->getUniqueName($mainBase,$destPath);
+                                               if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
+                                                       @chmod($destName, $TYPO3_CONF_VARS['BE']['fileCreateMask']);
+                                               }
                                                @copy($imgI[3],$destName);
 
                                                $destName = dirname($destName).'/'.rawurlencode(basename($destName));