From 721a0941a78164d6acf33d76c539a4c168ece247 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Fri, 25 Jan 2013 21:17:47 +0100 Subject: [PATCH] Possible Fix for #115 --- lib/wpscan/wp_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wpscan/wp_item.rb b/lib/wpscan/wp_item.rb index 5148245d..90d86b2e 100644 --- a/lib/wpscan/wp_item.rb +++ b/lib/wpscan/wp_item.rb @@ -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