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
922 922
        ndots = 1
923 923
        open(filename) {|f|
924 924
          f.each {|line|
925
            line.sub!(/[#;].*/, '')
925
            begin
926
              line.sub!(/[#;].*/, '')
927
            rescue ArgumentError # Ignore encoding issues.
928
              line = ''
929
            end
926 930
            keyword, *args = line.split(/\s+/)
927 931
            args.each { |arg|
928 932
              arg.untaint
929
-