Project

General

Profile

Bug #19502 » 0009632_rb41_v3.patch

Administrator Admin, 2008-10-30 14:07

View differences:

typo3/file_newfolder.php (working copy)
$this->basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);
// Cleaning and checking target
$this->target=$this->basicff->is_directory($this->target);
$this->target = $GLOBALS['LANG']->csConvObj->conv($this->target,'utf-8',$GLOBALS['LANG']->charSet);
$this->target = $this->basicff->is_directory($this->target);
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
......
function reload(a) { //
if (!changed || (changed && confirm('.$LANG->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.redraw')).'))) {
var params = "&target="+escape(path)+"&number="+a;
var params = "&target="+encodeURIComponent(path)+"&number="+a+"&returnUrl='
. urlencode($GLOBALS['LANG']->csConvObj->conv($this->returnUrl,$GLOBALS['LANG']->charSet,'utf-8'))
. '";
window.location.href = "file_newfolder.php?"+params;
}
}
......
$SOBE->init();
$SOBE->main();
$SOBE->printContent();
?>
?>
typo3/file_upload.php (working copy)
$this->basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);
// Cleaning and checking target
$this->target=$this->basicff->is_directory($this->target); // Cleaning and checking target
$this->target = $GLOBALS['LANG']->csConvObj->conv($this->target,'utf-8',$GLOBALS['LANG']->charSet);
$this->target = $this->basicff->is_directory($this->target);
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
......
function reload(a) { //
if (!changed || (changed '.$confirm.')) {
var params = "&target="+escape(path)+"&number="+a+"&returnUrl='.htmlspecialchars($this->returnUrl).'";
var params = "&target="+encodeURIComponent(path)+"&number="+a+"&returnUrl='
. urlencode($GLOBALS['LANG']->csConvObj->conv($this->returnUrl,$GLOBALS['LANG']->charSet,'utf-8'))
. '";
window.location.href = "file_upload.php?"+params;
}
}
......
$SOBE->init();
$SOBE->main();
$SOBE->printContent();
?>
?>
(2-2/4)