[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4178 - trunk/OpenDNSSEC/auditor/lib

Alex Dalitz alexd at nominet.org.uk
Thu Nov 11 16:27:52 CET 2010


Author: alex
Date: 2010-11-11 16:27:52 +0100 (Thu, 11 Nov 2010)
New Revision: 4178

Modified:
   trunk/OpenDNSSEC/auditor/lib/kasp_auditor.rb
Log:
Compare zone names ignoring case, to counter users using different cases for their zone names in different places

Modified: trunk/OpenDNSSEC/auditor/lib/kasp_auditor.rb
===================================================================
--- trunk/OpenDNSSEC/auditor/lib/kasp_auditor.rb	2010-11-11 07:11:12 UTC (rev 4177)
+++ trunk/OpenDNSSEC/auditor/lib/kasp_auditor.rb	2010-11-11 15:27:52 UTC (rev 4178)
@@ -287,7 +287,7 @@
       if @zone_name
         to_keep = nil
         zones.each {|z|
-          if (z[0].name == @zone_name.to_s)
+          if (z[0].name.downcase == @zone_name.to_s.downcase)
             to_keep = z
           end
         }
@@ -301,7 +301,7 @@
         # signed zonefile.
         conf = nil
         zones.each {|array|
-          if (array[0].name == @zone_name.to_s)
+          if (array[0].name.downcase == @zone_name.to_s.downcase)
             conf = array[0]
           end
         }




More information about the Opendnssec-commits mailing list