Permalink
Browse files

make makeRelative() case insensitive

  • Loading branch information...
1 parent d768d7f commit 88c52fe043d9b3111d628f7e0100b5a6dca7b54a @mind04 mind04 committed with mind04 Apr 22, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/misc.cc
View
@@ -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 "";
}

0 comments on commit 88c52fe

Please sign in to comment.