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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=808bc955cd292f9763c33a16fee1accb540cbf86;p=pdns 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 759bb39e1..98d63c867 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') {