]> granicus.if.org Git - pdns/commitdiff
API: Fix decoding of symbols
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 19 May 2014 15:48:41 +0000 (17:48 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 19 May 2014 15:48:41 +0000 (17:48 +0200)
=2F needs to be a slash, but we thought it was a #.

pdns/ws-api.cc

index 759bb39e1cb934dad843c688e3037f7dd10e8b90..98d63c8672c188a9ee6c3afcc7090dd0c6b0aee3 100644 (file)
@@ -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') {