lib/gitlab/file_response.rb in gitlab-3.7.0 vs lib/gitlab/file_response.rb in gitlab-4.0.0
- old
+ new
@@ -38,8 +38,9 @@
end
# Parse filename from the 'Content Disposition' header.
def parse_headers!(headers)
@filename = headers[HEADER_CONTENT_DISPOSITION].split("filename=")[1]
+ @filename = @filename[1...-1] if @filename[0] == '"' # Unquote filenames
end
end
end