Possible Fix for #115

This commit is contained in:
erwanlr
2013-01-25 21:17:47 +01:00
parent c2b53b1d0d
commit 721a0941a7

View File

@@ -64,7 +64,7 @@ class WpItem < Vulnerable
else
raise("Unknown type #@type")
end
f = File.readlines(file).grep(/^#{Regexp.escape(@name)}$/i)
f = File.readlines(file, encoding: 'UTF-8').grep(/^#{Regexp.escape(@name)}$/i)
f.empty? ? false : true
end