Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-upload_filename_sanitizer
A contao module to sanitizing file names that are uploaded.
https://github.com/heimrichhannot/contao-upload_filename_sanitizer
Last synced: about 1 month ago
JSON representation
A contao module to sanitizing file names that are uploaded.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-upload_filename_sanitizer
- Owner: heimrichhannot
- Created: 2016-11-22T16:16:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T14:46:35.000Z (almost 6 years ago)
- Last Synced: 2024-10-25T19:58:08.896Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Upload Filename sanitizer
## This module is abandoned. For Contao 4 use this bundle instead: [contao-filename-sanitizer-bundle](https://github.com/heimrichhannot/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:
1. German Umlauts are transformed to their non-umlaut representation (ä -> ae, Ä -> Ae, ß -> ss, ...).
2. All characters which are not a-z, A-Z, - (hyphen) or _ (underscore) are replaced by - (hyphen).
3. Multiple consecutive hyphens are replaced reduced to a single hyphen.
4. Leading and trailing hyphens are removed.