fix [ 1326687 ] Export on windows Apache server doesn't work (with quick fix

This commit is contained in:
JT Smith 2005-10-14 21:49:22 +00:00
parent 3f1468a91d
commit f7e83fd2df
2 changed files with 4 additions and 2 deletions

View file

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