|
|
|
|
@ -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; |
|
|
|
|
|