Merge branch 'master' of github.com:wpscanteam/wpscan

This commit is contained in:
erwanlr
2013-04-15 15:02:33 +02:00

View File

@@ -76,7 +76,7 @@ class File
#
# @return [ String ] The charset of the file
def self.charset(file_path)
%x{file -i #{file_path}}[%r{charset=([^\n]+)\n}, 1]
%x{file --mime #{file_path}}[%r{charset=([^\n]+)\n}, 1]
end
end