Commit 23b16334 authored by Matt Lowe's avatar Matt Lowe
Browse files

Escaped additional punctuation

parent d76073cd
...@@ -137,7 +137,7 @@ bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user) ...@@ -137,7 +137,7 @@ bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user)
regEx.append("A-Z"); regEx.append("A-Z");
if(settingsCache->value("users/allownumerics", true).toBool()) if(settingsCache->value("users/allownumerics", true).toBool())
regEx.append("0-9"); regEx.append("0-9");
regEx.append(allowedPunctuation); regEx.append(QRegExp::escape(allowedPunctuation));
regEx.append("]+"); regEx.append("]+");
static QRegExp re = QRegExp(regEx); static QRegExp re = QRegExp(regEx);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment