Index: typo3/file_newfolder.php =================================================================== --- typo3/file_newfolder.php (revision 4370) +++ typo3/file_newfolder.php (working copy) @@ -153,7 +153,7 @@ 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+"&returnUrl="+escape("' . $this->returnUrl . '"); + var params = "&target="+encodeURIComponent(path)+"&number="+a+"&returnUrl="+encodeURIComponent("' . $this->returnUrl . '"); window.location.href = "file_newfolder.php?"+params; } } Index: typo3/file_upload.php =================================================================== --- typo3/file_upload.php (revision 4370) +++ typo3/file_upload.php (working copy) @@ -168,7 +168,7 @@ 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='.htmlspecialchars($this->returnUrl).'"; window.location.href = "file_upload.php?"+params; } }