Ignore:
Timestamp:
Jun 23, 2008, 4:23:00 PM (16 years ago)
Author:
broder
Message:

Canonicalize anything we get to lower case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dns/code/dnsserver.py

    r645 r646  
    4949       
    5050        ttl = 900
    51         if name.lower() in self.domains:
    52             domain = name.lower()
     51        name = name.lower()
     52        if name in self.domains:
     53            domain = name
    5354        else:
    5455            # This works because domain will remain bound after breaking out of the loop
    5556            for domain in self.domains:
    56                 if name.lower().endswith('.'+domain):
     57                if name.endswith('.'+domain):
    5758                    break
    5859            else: #Not us
Note: See TracChangeset for help on using the changeset viewer.