--- t3lib/class.t3lib_extfilefunc.php 2008-04-08 02:00:40.000000000 +0200 +++ t3lib/class.t3lib_extfilefunc.php 2008-04-08 01:56:37.000000000 +0200 @@ -695,7 +695,7 @@ function func_newfolder($cmds) { if (!$this->isInit) return FALSE; - $theFolder = $this->cleanFileName($cmds['data']); + $theFolder = preg_replace('/[\/\. ]*$/','',$this->cleanFileName($cmds['data'])); if ($theFolder) { if ($this->checkFileNameLen($theFolder)) { $theTarget = $this->is_directory($cmds['target']); // Check the target dir