Skip to content

Commit 88c52fe

Browse files
committed
make makeRelative() case insensitive
1 parent d768d7f commit 88c52fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdns/misc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ string makeRelative(const std::string& fqdn, const std::string& zone)
679679
{
680680
if(zone.empty())
681681
return fqdn;
682-
if(fqdn != zone)
682+
if(toLower(fqdn) != toLower(zone))
683683
return fqdn.substr(0, fqdn.size() - zone.length() - 1); // strip domain name
684684
return "";
685685
}

0 commit comments

Comments
 (0)