Skip to content
Snippets Groups Projects
Commit 6a4dd684 authored by Marc Egger's avatar Marc Egger
Browse files

Fixes #7223 Add "-" as allowed characters in filenames

parent e1f7510e
No related branches found
No related tags found
1 merge request!114F7223allow in filenames
Pipeline #1118 passed
......@@ -171,7 +171,7 @@ class Sanitize {
public static function safeFilename($filename, $flagBaseName = false, $allowSlash = false) {
// Disallow 'none alphanumeric'. Allow dot or underscore and conditionally '/'.
$pattern = ($allowSlash) ? '([^[:alnum:]._/])' : '([^[:alnum:]._])';
$pattern = ($allowSlash) ? '([^[:alnum:]._\-/])' : '([^[:alnum:]._\-])';
$search = array(
// Definition of German Umlauts START
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment