##// END OF EJS Templates
scm: fix non ASCII filename downloaded from repo is broken on Internet Explorer (#7288)....
Toshi MARUYAMA -
r4696:4957f916399b
parent child
Show More
@@ -124,7 +124,7 class RepositoriesController < ApplicationController
124 (show_error_not_found; return) unless @content
124 (show_error_not_found; return) unless @content
125 if 'raw' == params[:format] || @content.is_binary_data? || (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte)
125 if 'raw' == params[:format] || @content.is_binary_data? || (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte)
126 # Force the download
126 # Force the download
127 send_data @content, :filename => @path.split('/').last
127 send_data @content, :filename => filename_for_content_disposition(@path.split('/').last)
128 else
128 else
129 # Prevent empty lines when displaying a file with Windows style eol
129 # Prevent empty lines when displaying a file with Windows style eol
130 @content.gsub!("\r\n", "\n")
130 @content.gsub!("\r\n", "\n")
General Comments 0
You need to be logged in to leave comments. Login now