Skip to content

Commit

Permalink
The filename now is quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-g committed Jul 4, 2011
1 parent d693caa commit ba5f344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prawn_rails.rb
Expand Up @@ -24,8 +24,8 @@ def prawn_document(opts={})
def disposition(download, filename)
download = true if (filename && download == nil)
disposition = download ? "attachment;" : "inline;"
disposition += " filename=#{filename}" if filename
headers["Content-Disposition"]=disposition
disposition += " filename=\"#{filename}\"" if filename
headers["Content-Disposition"] = disposition
end

end
Expand Down

0 comments on commit ba5f344

Please sign in to comment.