Commit 6a4dd684 authored by Marc Egger's avatar Marc Egger
Browse files

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

parent e1f7510e
Pipeline #1118 passed with stage
in 1 minute and 37 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment