fix [ 1326687 ] Export on windows Apache server doesn't work (with quick fix
This commit is contained in:
parent
3f1468a91d
commit
f7e83fd2df
2 changed files with 4 additions and 2 deletions
|
|
@ -250,7 +250,7 @@ sub www_exportGenerate {
|
|||
$filename = $index;
|
||||
}
|
||||
if($path) {
|
||||
$path = $session{config}{exportPath} . $session{os}{slash} . $path;
|
||||
$path = $session{config}{exportPath} . "/" . $path;
|
||||
eval { mkpath($path) };
|
||||
if($@) {
|
||||
print "Couldn't create $path because $@ <br />\n";
|
||||
|
|
@ -258,7 +258,7 @@ sub www_exportGenerate {
|
|||
return;
|
||||
}
|
||||
}
|
||||
$path .= $session{os}{slash}.$filename;
|
||||
$path .= "/".$filename;
|
||||
eval { open(FILE, "> $path") or die "$!" };
|
||||
if ($@) {
|
||||
print "Couldn't open $path because $@ <br />\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue