Fix download see BT#10254

1.9.x
Julio Montoya 10 years ago
parent 2d0efb66e8
commit 7d8820a3b6
  1. 3
      main/document/downloadfolder.inc.php

@ -104,6 +104,9 @@ function fixDocumentNameCallback($p_event, &$p_header)
if ($remove_dir != '/') {
$documentNameFixed = str_replace($remove_dir, '/', $documentNameFixed);
if (substr($documentNameFixed, 0, 1) == '/') {
$documentNameFixed = substr($documentNameFixed, 1, api_strlen($documentNameFixed));
}
} else {
$documentNameFixed = ltrim($documentNameFixed, '/');
}

Loading…
Cancel
Save