lib/dragonfly/response.rb in dragonfly-1.3.0 vs lib/dragonfly/response.rb in dragonfly-1.4.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'uri' +require 'cgi' require 'rack' module Dragonfly class Response @@ -97,10 +97,10 @@ end end def filename_string return unless job.name - filename = request_from_msie? ? URI.encode(job.name) : job.name + filename = request_from_msie? ? CGI.escape(job.name) : job.name %(filename="#{filename}") end def request_from_msie? env["HTTP_USER_AGENT"] =~ /MSIE/