Documents: Fix folder creation, remove ending dots see BT#18698

pull/3859/head
Julio Montoya 5 years ago
parent f7578c36c0
commit 728eddec93
  1. 4
      main/inc/lib/api.lib.php

@ -6670,6 +6670,10 @@ function api_replace_dangerous_char($filename, $treat_spaces_as_hyphens = true)
$treat_spaces_as_hyphens
);
// Replace multiple dots at the end.
$regex = "/\.+$/";
$url = preg_replace($regex, '', $url);
return $url;
}

Loading…
Cancel
Save