aboutsummaryrefslogtreecommitdiff
path: root/src/utilstrencodings.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2015-09-23 12:06:00 +0200
committerMarcoFalke <[email protected]>2015-09-23 12:06:00 +0200
commit43edd515e544b46ca548933135326fbe4a4b4e5a (patch)
treedeed6fc8e6db0a42fe44f1643e2d508c62088618 /src/utilstrencodings.cpp
parentMerge pull request #6315 (diff)
downloaddiscoin-43edd515e544b46ca548933135326fbe4a4b4e5a.tar.xz
discoin-43edd515e544b46ca548933135326fbe4a4b4e5a.zip
SanitizeString: Allow hypen char
Diffstat (limited to 'src/utilstrencodings.cpp')
-rw-r--r--src/utilstrencodings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp
index 76c22f735..c5a2b5cdb 100644
--- a/src/utilstrencodings.cpp
+++ b/src/utilstrencodings.cpp
@@ -18,8 +18,8 @@ static const string CHARS_ALPHA_NUM = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO
static const string SAFE_CHARS[] =
{
- CHARS_ALPHA_NUM + " .,;_/:?@()", // SAFE_CHARS_DEFAULT
- CHARS_ALPHA_NUM + " .,;_?@" // SAFE_CHARS_UA_COMMENT
+ CHARS_ALPHA_NUM + " .,;-_/:?@()", // SAFE_CHARS_DEFAULT
+ CHARS_ALPHA_NUM + " .,;-_?@" // SAFE_CHARS_UA_COMMENT
};
string SanitizeString(const string& str, int rule)