Skip to content
Snippets Groups Projects
Commit 8df50867 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX #6870

parent adc77f74
No related branches found
No related tags found
No related merge requests found
...@@ -155,6 +155,13 @@ if (! empty($_SESSION['error'])) { ...@@ -155,6 +155,13 @@ if (! empty($_SESSION['error'])) {
$file = $docserver . $path . $filename; $file = $docserver . $path . $filename;
$file = str_replace("#", DIRECTORY_SEPARATOR, $file); $file = str_replace("#", DIRECTORY_SEPARATOR, $file);
if (!copy($file, $_SESSION['config']['tmppath'] . DIRECTORY_SEPARATOR . $filename)) {
echo 'error';
exit();
} else {
$file = $_SESSION['config']['tmppath'] . DIRECTORY_SEPARATOR . $filename;
}
if (strtoupper($format) == "MAARCH") { if (strtoupper($format) == "MAARCH") {
if (file_exists($file)) { if (file_exists($file)) {
$myfile = fopen($file, "r"); $myfile = fopen($file, "r");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment