Fix download zip see BT#10254

1.9.x
Julio Montoya 10 years ago
parent 911a5bb6ef
commit 2d0efb66e8
  1. 6
      main/document/downloadfolder.inc.php

@ -102,7 +102,11 @@ function fixDocumentNameCallback($p_event, &$p_header)
$documentNameFixed
);
$documentNameFixed = str_replace($remove_dir, '/', $documentNameFixed);
if ($remove_dir != '/') {
$documentNameFixed = str_replace($remove_dir, '/', $documentNameFixed);
} else {
$documentNameFixed = ltrim($documentNameFixed, '/');
}
$p_header['stored_filename'] = $documentNameFixed;
return 1;

Loading…
Cancel
Save