|
|
|
|
@ -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, '/'); |
|
|
|
|
} |
|
|
|
|
|