aboutsummaryrefslogtreecommitdiff
path: root/src/utilstrencodings.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/utilstrencodings.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/utilstrencodings.cpp')
-rw-r--r--src/utilstrencodings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp
index a06d88cb1..3c6e333a6 100644
--- a/src/utilstrencodings.cpp
+++ b/src/utilstrencodings.cpp
@@ -19,6 +19,7 @@ static const std::string SAFE_CHARS[] =
CHARS_ALPHA_NUM + " .,;-_/:?@()", // SAFE_CHARS_DEFAULT
CHARS_ALPHA_NUM + " .,;-_?@", // SAFE_CHARS_UA_COMMENT
CHARS_ALPHA_NUM + ".-_", // SAFE_CHARS_FILENAME
+ CHARS_ALPHA_NUM + "!*'();:@&=+$,/?#[]-_.~%", // SAFE_CHARS_URI
};
std::string SanitizeString(const std::string& str, int rule)