From: Christian Hofstaedtler Date: Tue, 8 Apr 2014 12:58:55 +0000 (+0200) Subject: API: correctly use lowercase compare for zone name X-Git-Tag: rec-3.6.0-rc1~72^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e4b015b9b1b94d74b7c0c87f5c9aecab9add650;p=thirdparty%2Fpdns.git API: correctly use lowercase compare for zone name --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 7d9d4b441c..c489c38e2c 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -600,7 +600,7 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) { qtype = stringFromJson(rrset, "type"); changetype = toUpper(stringFromJson(rrset, "changetype")); - if (!iends_with(qname, dotsuffix) && qname != zonename) + if (!iends_with(qname, dotsuffix) && !pdns_iequals(qname, zonename)) throw ApiException("RRset "+qname+" IN "+qtype.getName()+": Name is out of zone"); if (changetype == "DELETE") {