Bug #17953 » rtehtmlarea_bugfix_7052_new2.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);
|
||
@copy($imgInfo[3],$destName);
|
||
if (isset($TYPO3_CONF_VARS['BE']['fileCreateMask'])) {
|
||
@chmod($destName, octdec($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, octdec($TYPO3_CONF_VARS['BE']['fileCreateMask']));
|
||
}
|
||
$destName = dirname($destName).'/'.rawurlencode(basename($destName));
|
- « Previous
- 1
- 2
- 3
- Next »