Opened 15 years ago
Closed 15 years ago
#5073 closed New Feature (fixed)
$sUnsafeFileName in CKfinder
Reported by: | cs1 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | CKFinder | Cc: |
Description
I'm using since one year the CKfinder and it is a very usefull tool on my website. Now I did the update to version 1.42 and I will do the sugestion to give one line more to the config-file.
In the german language there may be some letters like "Ä", "Ö" etc. and it might be users, who wants to upload a file with these bad letters in the filename. If there is a uploaded file with these bad letters on the server, the CKfinder will not work, because there appears a "wrong XML-response". I 've seen, that you have already placed a new line with bad letters in the FileUpload.php. It is the same place, where I had it placed in the last older versions of CKfinder.
I did it now in Version 1.42 like this:
$sFileName = str_replace(array("Ä","Ö","Ü","ä","ö","ü","ß"," ",":",
"*", "?", "|", "/"), "_", $sUnsafeFileName);
If you put this list of bad letters in the config-file, the configuration might be easier in the next version, because I don't have to change a core-file.
Change History (2)
comment:1 Changed 15 years ago by
Component: | File Browser → General |
---|---|
Keywords: | CKFinder added; CKfinder removed |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Type: | Task → New Feature |
New feature added in CKFinder for PHP 1.4.3 (
$config['ForceAscii']
).Please use CKFinder forum to suggest new features.