The forum operates in read-only mode. Please head to StackOverflow for support.
$fileName = str_replace(array(":", "*", "?", "|", "/", " ", "-", "!", ";", "#", "@", "'"), "_", $fileName);
$sFileName = str_replace(array(":", "*", "?", "|", "/", " ", "-", "!", ";", "#", "@", "'"), "_", $sUnsafeFileName);
$sNewFolderName = str_replace(array(":", "*", "?", "|", "/", " ", "-", "!", ";", "#", "@", "'"), "_", $sNewFolderName);
Re: Space between names
I just replace some spacial chars too like: ":", "*", "?", "|", "/", " ", "-", "!", ";", "#", "@", "'".
On CKFinder 2.3 I just replace line 331 on FileSystem.php
On CKFinder 2.2.1 I replace line 58 on FileUpload.php
I also did the same for the folder names:
CKFinder 2.2.1: on CreateFolder.php below line 58 just add
On CKFinder 2.3: on CreateFolder.php below line 60 add