Does not allow special char in file name

This commit is contained in:
Laurent Destailleur 2008-10-25 20:54:41 +00:00
parent 6ab140f169
commit 5f55cb864e

View File

@ -421,7 +421,8 @@ class EcmDirectory // extends CommonObject
if ($cursorindex >= 0)
{
$ret=$this->cats[$cursorindex]['label'].'/'.$ret;
// Path is label sanitized (no space and no special char) and concatenated
$ret=sanitize_string($this->cats[$cursorindex]['label']).'/'.$ret;
$idtosearch=$this->cats[$cursorindex]['id_mere'];
$i++;