Modifying BlobHelper and FileBlob to use path

This commit is contained in:
Arfon Smith
2015-01-09 15:15:34 -06:00
parent 79fd12eb75
commit f4c1cc576b
3 changed files with 49 additions and 35 deletions

View File

@@ -99,7 +99,7 @@ module Linguist
elsif name.nil?
"attachment"
else
"attachment; filename=#{EscapeUtils.escape_url(File.basename(name))}"
"attachment; filename=#{EscapeUtils.escape_url(name)}"
end
end
@@ -233,7 +233,7 @@ module Linguist
#
# Return true or false
def vendored?
name =~ VendoredRegexp ? true : false
path =~ VendoredRegexp ? true : false
end
# Public: Get each line of data