Bug #14859 » 1280.diff
t3lib/class.t3lib_extfilefunc.php (working copy) | ||
---|---|---|
function func_rename($cmds) {
|
||
if (!$this->isInit) return FALSE;
|
||
$theNewName = $this->cleanFileName($cmds['data']);
|
||
if ($this->is_directory($cmds['target'])) {
|
||
$theNewName = $this->cleanDirectoryName($cmds['data']);
|
||
} else {
|
||
$theNewName = $this->cleanFileName($cmds['data']);
|
||
}
|
||
if ($theNewName) {
|
||
if ($this->checkFileNameLen($theNewName)) {
|
||
$theTarget = $cmds['target'];
|
||
... | ... | |
function func_newfolder($cmds) {
|
||
if (!$this->isInit) return FALSE;
|
||
$theFolder = $this->cleanFileName($cmds['data']);
|
||
$theFolder = $this->cleanDirectoryName($cmds['data']);
|
||
if (isset($theFolder)) {
|
||
if ($this->checkFileNameLen($theFolder)) {
|
||
$theTarget = $this->is_directory($cmds['target']); // Check the target dir
|