Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-11 14:26:20 +0300
committerRobert Adam <dev@robert-adam.de>2021-04-11 14:26:20 +0300
commit1590589ac10856c8bd0a4a3a40c7e816b57c11d1 (patch)
tree1e65d5a1ccbf1d3368759d9d7dee5fae2ae778cf
parent58fee9705d3b802aa2abb5201a1afaa454cc2caa (diff)
CHANGE(server): Allow spaces in username by default
The default RegEx for describing valid usernames was updated to also allow for spaces in names. Note that "empty" names (e.g. names only consisting of whitespace) are not possible since usernames are always trimmed before being applied and the RegEx does not allow for names of length 0. Fixes #1202
-rw-r--r--src/murmur/Meta.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/murmur/Meta.cpp b/src/murmur/Meta.cpp
index d04d297de..6ebaeb18d 100644
--- a/src/murmur/Meta.cpp
+++ b/src/murmur/Meta.cpp
@@ -98,8 +98,8 @@ MetaParams::MetaParams() {
iChannelNestingLimit = 10;
iChannelCountLimit = 1000;
- qrUserName = QRegExp(QLatin1String("[-=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+"));
- qrChannelName = QRegExp(QLatin1String("[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+"));
+ qrUserName = QRegExp(QLatin1String("[ -=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+"));
+ qrChannelName = QRegExp(QLatin1String("[ -=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+"));
iMessageLimit = 1;
iMessageBurst = 5;