mirror of
https://github.com/urbanadventurer/WhatWeb
synced 2026-06-21 14:12:19 +00:00
Made country plugin ruby1.9 safe
This commit is contained in:
@@ -250,5 +250,5 @@ WESTERN SAHARA,EH,ESH,AFRINIC
|
||||
YEMEN,YE,YEM,RIPE
|
||||
ZAMBIA,ZM,ZMB,AFRINIC
|
||||
ZIMBABWE,ZW,ZWE,AFRINIC
|
||||
ÅLAND ISLANDS,AX,ALA,RIPE
|
||||
ÅLAND ISLANDS,AX,ALA,RIPE
|
||||
SAINT MARTIN,MF,MAF,ARIN
|
||||
|
||||
+4
-1
@@ -61,7 +61,10 @@ def startup
|
||||
|
||||
f = whatweb_folder + "/country-codes.txt"
|
||||
@ccnames={};
|
||||
File.read(f).each {|line| x=line.split(","); @ccnames[x[1]] = x[0] }
|
||||
File.open(f,"r:UTF-8").read.split.each do |line|
|
||||
x=line.split(",");
|
||||
@ccnames[x[1]] = x[0]
|
||||
end
|
||||
end
|
||||
|
||||
def passive
|
||||
|
||||
Reference in New Issue
Block a user