Project

General

Profile

Bug #17953 » rtehtmlarea_bugfix_7052_new.patch

Administrator Admin, 2008-02-05 18:41

View differences:

typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (working copy)
$destPath =PATH_site.$this->rteImageStorageDir();
if (@is_dir($destPath)) {
$destName = $fileFunc->getUniqueName($basename,$destPath);
@copy($imgInfo[3],$destName);
if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
@chmod($destName, $TYPO3_CONF_VARS['BE']['fileCreateMask']);
}
$cWidth = t3lib_div::intInRange(t3lib_div::_GP('cWidth'),0,$this->magicMaxWidth);
......
$fI=pathinfo($imgI[3]);
$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, $TYPO3_CONF_VARS['BE']['fileCreateMask']);
}
$destName = dirname($destName).'/'.rawurlencode(basename($destName));
(2-2/3)