diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index e08b1c0ea0..09a9f323b7 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -5612,7 +5612,7 @@ function api_is_element_in_the_session($tool, $element_id, $session_id = null) { function api_replace_dangerous_char($filename, $strict = 'loose') { - return URLify::filter($filename, 250); + return URLify::filter($filename, 250, null, true); /* // Safe replacements for some non-letter characters. static $search = array(',', "\0", ' ', "\t", "\n", "\r", "\x0B", '/', "\\", '"', "'", '?', '*', '>', '<', '|', ':', '$', '(', ')', '^', '[', ']', '#', '+', '&', '%');