fix error
This commit is contained in:
parent
034d08971a
commit
405f5aefbc
|
@ -666,7 +666,7 @@ class AnnouncementsController < ApplicationController
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
user_agent = request.user_agent.downcase
|
user_agent = request.user_agent.downcase
|
||||||
@escaped_file_name = user_agent.include?(/(msie|trident)/) ? CGI::escape(@filename) : @filename
|
@escaped_file_name = user_agent.match(/(msie|trident)/) ? CGI::escape(@filename) : @filename
|
||||||
send_file(@path, :type=>"application/octet-stream", :filename => @escaped_file_name, :x_sendfile=> true)
|
send_file(@path, :type=>"application/octet-stream", :filename => @escaped_file_name, :x_sendfile=> true)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue