QAuthenticator::setUser() parse user name in form user@domain
Task-number: QTBUG-19894 Change-Id: I063dbc66e5f47a83cc1c0aee8913062b4b5e42bc Reviewed-on: http://codereview.qt.nokia.com/507 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
This commit is contained in:
parent
883b120d2f
commit
1d450c6941
@ -223,7 +223,7 @@ void QAuthenticator::setUser(const QString &user)
|
||||
} else if((separatorPosn = user.indexOf(QLatin1String("@"))) != -1) {
|
||||
//domain name is present
|
||||
d->realm.clear();
|
||||
d->userDomain = user.left(separatorPosn);
|
||||
d->userDomain = user.mid(separatorPosn + 1);
|
||||
d->extractedUser = user.left(separatorPosn);
|
||||
d->user = user;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user