From: Christian Hofstaedtler Date: Mon, 19 May 2014 15:48:41 +0000 (+0200) Subject: API: Fix decoding of symbols X-Git-Tag: rec-3.6.0-rc1~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1420%2Fhead;p=thirdparty%2Fpdns.git API: Fix decoding of symbols =2F needs to be a slash, but we thought it was a #. --- diff --git a/pdns/ws-api.cc b/pdns/ws-api.cc index 759bb39e1c..98d63c8672 100644 --- a/pdns/ws-api.cc +++ b/pdns/ws-api.cc @@ -237,7 +237,7 @@ string apiZoneIdToName(const string& id) { } else { throw HttpBadRequestException(); } - c = c * 10; + c = c * 16; // decode unit place if (id[pos+2] >= '0' && id[pos+2] <= '9') {