aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-11-01 17:03:32 +0100
committerfanquake <[email protected]>2018-11-29 18:34:58 +0800
commit79358817e53ac0a7afa64c747115d492a74e3155 (patch)
tree33d3b3466e6cc288be8719f928b49f90d51b367c /src/httpserver.cpp
parentrpc: Make HTTP RPC debug logging more informative (diff)
downloaddiscoin-79358817e53ac0a7afa64c747115d492a74e3155.tar.xz
discoin-79358817e53ac0a7afa64c747115d492a74e3155.zip
Add SAFE_CHARS[SAFE_CHARS_URI]: Chars allowed in URIs (RFC 3986)
Github-Pull: #14618 Rebased-From: ab8c6f24d28ea1d1e6258cf316b4b97a0baf2377
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index b3befbe46..2a76d0d46 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -241,7 +241,7 @@ static void http_request_cb(struct evhttp_request* req, void* arg)
}
LogPrint(BCLog::HTTP, "Received a %s request for %s from %s\n",
- RequestMethodString(hreq->GetRequestMethod()), SanitizeString(hreq->GetURI()).substr(0, 100), hreq->GetPeer().ToString());
+ RequestMethodString(hreq->GetRequestMethod()), SanitizeString(hreq->GetURI(), SAFE_CHARS_URI).substr(0, 100), hreq->GetPeer().ToString());
// Find registered handler for prefix
std::string strURI = hreq->GetURI();