Project

General

Profile

Bug #9273 » 0001-Ignore-encoding-issues.patch

vo.x (Vit Ondruch), 12/21/2013 06:02 AM

View differences:

lib/resolv.rb
ndots = 1
open(filename) {|f|
f.each {|line|
line.sub!(/[#;].*/, '')
begin
line.sub!(/[#;].*/, '')
rescue ArgumentError # Ignore encoding issues.
line = ''
end
keyword, *args = line.split(/\s+/)
args.each { |arg|
arg.untaint
(1-1/2)