diff options
| -rw-r--r-- | pica-client/dialogs/registeraccountdialog.cpp | 2 | ||||
| -rw-r--r-- | pica-registrar/PICA_registrar.cpp | 1 |
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++; |
