Skip to content

Commit

Permalink
Fixed wrong filename for exporting in Firefox when exporting.filename…
Browse files Browse the repository at this point in the history
… option contained spaces. Closes #778.
  • Loading branch information
highslide-software committed Feb 27, 2012
1 parent aeca835 commit 40f9388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporting-server/index.php
Expand Up @@ -81,7 +81,7 @@

// stream it
else {
header("Content-Disposition: attachment; filename=$filename.$ext");
header("Content-Disposition: attachment; filename=\"$filename.$ext\"");
header("Content-Type: $type");
echo file_get_contents($outfile);
}
Expand All @@ -92,7 +92,7 @@

// SVG can be streamed directly back
} else if ($ext == 'svg') {
header("Content-Disposition: attachment; filename=$filename.$ext");
header("Content-Disposition: attachment; filename=\"$filename.$ext\"");
header("Content-Type: $type");
echo $svg;

Expand Down

0 comments on commit 40f9388

Please sign in to comment.