summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pica-client/dialogs/registeraccountdialog.cpp2
-rw-r--r--pica-registrar/PICA_registrar.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/pica-client/dialogs/registeraccountdialog.cpp b/pica-client/dialogs/registeraccountdialog.cpp
index bc723f7..0608e91 100644
--- a/pica-client/dialogs/registeraccountdialog.cpp
+++ b/pica-client/dialogs/registeraccountdialog.cpp
@@ -31,7 +31,7 @@ RegisterAccountDialog::RegisterAccountDialog(QWidget *parent) :
setLayout(layout);
- vld = new QRegExpValidator(QRegExp("[^\\#/=\"\'\\$]+"), this);
+ vld = new QRegExpValidator(QRegExp("[^\\#\\$&\"\'=\\(\\)\\\\/\\|`!<>\\{\\}\\[\\]\\+]+"), this);
nickname->setValidator(vld);
connect(btOK, SIGNAL(clicked()), this, SLOT(OK()));
diff --git a/pica-registrar/PICA_registrar.cpp b/pica-registrar/PICA_registrar.cpp
index 5b191b4..9985cf2 100644
--- a/pica-registrar/PICA_registrar.cpp
+++ b/pica-registrar/PICA_registrar.cpp
@@ -242,6 +242,7 @@ while(*ptr1)
case '}':
case '[':
case ']':
+ case '+':
goto retn;
}
ptr1++;