Bug #17953 » rtehtmlarea_bugfix_7052.patch
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);
|
||
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);
|
||
... | ... | |
$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));
|