heimrichhannot / contao-upload_filename_sanitizer
A simple module for sanitizing filenames (when uploading them in the file manager) and folders (when creating them in the file manager).
Installs: 1 477
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: ~5.4 || ~7.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-haste_plus: >=1.7.0
README
This module is abandoned. For Contao 4 use this bundle instead: contao-filename-sanitizer-bundle
A simple module for sanitizing filenames (when uploading them in the file manager) and folders (when creating them in the file manager). The sanitizing contains the following steps:
- German Umlauts are transformed to their non-umlaut representation (ä -> ae, Ä -> Ae, ß -> ss, ...).
- All characters which are not a-z, A-Z, - (hyphen) or _ (underscore) are replaced by - (hyphen).
- Multiple consecutive hyphens are replaced reduced to a single hyphen.
- Leading and trailing hyphens are removed.