Minor spaces fixes when replacing charcters -refs #6785

1.9.x
unknown 12 years ago
parent 520f6a5cc6
commit bd5dbba79b
  1. 2
      main/inc/lib/main_api.lib.php

@ -5028,7 +5028,7 @@ function api_is_element_in_the_session($tool, $element_id, $session_id = null) {
function replace_dangerous_char($filename, $strict = 'loose') {
// Safe replacements for some non-letter characters.
static $search = array(',', "\0", ' ', "\t", "\n", "\r", "\x0B", '/', "\\", '"', "'", '?', '*', '>', '<', '|', ':', '$', '(', ')', '^', '[', ']', '#', '+', '&', '%');
static $replace = array('_', '', '_', '_', '_', '_', '_', '-', '-', '-', '_', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-');
static $replace = array('_', '', '_', '_', '_', '_', '_', '-', '-', '-', '_', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-');
// Encoding detection.
$encoding = api_detect_encoding($filename);

Loading…
Cancel
Save