]> git.ipfire.org Git - thirdparty/pdns.git/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>
Thu, 30 Apr 2015 22:12:18 +0000 (00:12 +0200)
pdns/misc.cc

index 74db1b846508c2ff87b1774c72e422768393c5f2..2d5dc21dd1611f3f823d31ce4682a7a48160a686 100644 (file)
@@ -679,7 +679,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 "";
 }