summaryrefslogtreecommitdiff
path: root/inc/SafeFN.class.php
Commit message (Collapse)AuthorAge
* Fix SafeFN-encoded file namesAdrian Lang2010-10-26
| | | | SafeFN encoding now always end the encoding block by appending a dot at the end of the file name. This is necessary since the file name may get an extension which is not encoded.
* Update SafeFN class, simplify and improve performanceChristopher Smith2010-04-04
|
* class for safely encoding filenamesChristopher Smith2010-04-04
This class tries to satisfy the following requirements: * all ASCII alphanumeric chars in the input should stay the same ASCII alphanumeric chars in the output * the resulting string should be as short as possible * the operation needs to be reversable without any data loss * the resulting ASCII string should be case insensitive * there should be no restriction on the input length * the whole UTF-8 range should be allowed using it creates a way to store UTF-8 in filenames even if the underlying filesystem does not support UTF-8. It is also pretty robust when files are moved between various filesystems and it creates shorter filenames than the currently used urlencoding.