aboutsummaryrefslogtreecommitdiff
path: root/src/utilstrencodings.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-09-23 12:06:00 +0200
committerMarcoFalke <falke.marco@gmail.com>2015-09-23 12:06:00 +0200
commit43edd515e544b46ca548933135326fbe4a4b4e5a (patch)
treedeed6fc8e6db0a42fe44f1643e2d508c62088618 /src/utilstrencodings.cpp
parente59d2a80f9167031521d882394a08b02fa9d0343 (diff)
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 76c22f7353..c5a2b5cdbb 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)