* Fixed bug #7419: htmlArea RTE: Localization error in Remove Format plugin
* Fixed bug #7421: htmlArea RTE: typographical error in localization file
* Fixed bug #7052: Permission problem of htmlArea RTE images
+ * Fixed bug #7052 (revisited): Permission problem of htmlArea RTE images, using t3lib_div::fixPermissions
2008-02-05 Oliver Hader <oh@inpublica.de>
* Fixed bug #7419: htmlArea RTE: Localization error in Remove Format plugin
* Fixed bug #7421: htmlArea RTE: typographical error in localization file
+ * Fixed bug #7052: Permission problem of htmlArea RTE images
+ * Fixed bug #7052 (revisited): Permission problem of htmlArea RTE images, using t3lib_div::fixPermissions
2008-02-04 Stanislas Rolland <stanislas.rolland@fructifor.ca>
* Fixed bug: htmlArea RTE calling t3lib_div::getUserObj() with an empty string
* Fixed bug: htmlArea RTE: incorrect configuration of TYPO3HtmlParser plugin
- * Fixed bug #7052: Permission problem of htmlArea RTE images
2008-02-01 Stanislas Rolland <stanislas.rolland@fructifor.ca>
if (@is_dir($destPath)) {
$destName = $fileFunc->getUniqueName($basename,$destPath);
@copy($imgInfo[3],$destName);
- if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
- @chmod($destName, octdec($TYPO3_CONF_VARS['BE']['fileCreateMask']));
- }
-
+ t3lib_div::fixPermissions($destName);
$cWidth = t3lib_div::intInRange(t3lib_div::_GP('cWidth'),0,$this->magicMaxWidth);
$cHeight = t3lib_div::intInRange(t3lib_div::_GP('cHeight'),0,$this->magicMaxHeight);
if (!$cWidth) $cWidth = $this->magicMaxWidth;
$mainBase='RTEmagicC_'.substr(basename($destName),10).'.'.$fI['extension'];
$destName = $fileFunc->getUniqueName($mainBase,$destPath);
@copy($imgI[3],$destName);
- if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
- @chmod($destName, octdec($TYPO3_CONF_VARS['BE']['fileCreateMask']));
- }
+ t3lib_div::fixPermissions($destName);
$iurl = $this->siteUrl.substr($destName,strlen(PATH_site));
$this->imageInsertJS($iurl,$imgI[0],$imgI[1],$imgMetaData['alt_text'],$imgMetaData[$this->imgTitleDAMColumn],substr($imgInfo[3],strlen(PATH_site)));
}
if (@is_dir($destPath)) {
$destName = $fileFunc->getUniqueName($basename,$destPath);
@copy($imgInfo[3],$destName);
- if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
- @chmod($destName, octdec($TYPO3_CONF_VARS['BE']['fileCreateMask']));
- }
-
+ t3lib_div::fixPermissions($destName);
$cWidth = t3lib_div::intInRange(t3lib_div::_GP('cWidth'),0,$this->magicMaxWidth);
$cHeight = t3lib_div::intInRange(t3lib_div::_GP('cHeight'),0,$this->magicMaxHeight);
if (!$cWidth) $cWidth = $this->magicMaxWidth;
$mainBase='RTEmagicC_'.substr(basename($destName),10).'.'.$fI['extension'];
$destName = $fileFunc->getUniqueName($mainBase,$destPath);
@copy($imgI[3],$destName);
- if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
- @chmod($destName, octdec($TYPO3_CONF_VARS['BE']['fileCreateMask']));
- }
-
+ t3lib_div::fixPermissions($destName);
$destName = dirname($destName).'/'.rawurlencode(basename($destName));
$iurl = $this->siteUrl.substr($destName,strlen(PATH_site));
echo'