]> granicus.if.org Git - pdns/commitdiff
make makeRelative() case insensitive
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 22 Apr 2015 17:31:31 +0000 (19:31 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 22 Apr 2015 17:31:31 +0000 (19:31 +0200)
pdns/misc.cc

index 872a72237d653896395b5f98e3d619661099f768..3605e56dd170e2feb778f3e4d95d712b096e492e 100644 (file)
@@ -658,7 +658,7 @@ string makeRelative(const std::string& fqdn, const std::string& zone)
 {
   if(zone.empty())
     return fqdn;  
-  if(fqdn != zone)
+  if(toLower(fqdn) != toLower(zone))
     return fqdn.substr(0, fqdn.size() - zone.length() - 1); // strip domain name
   return "";
 }