diff options
author | Martin Petersson <martin.petersson@nokia.com> | 2011-06-20 11:03:40 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-09-28 12:37:56 (GMT) |
commit | abfec3ab053e8eae1f8f60e2ab7e107a1ad7635c (patch) | |
tree | 5aa25e2c454730f94114714fec3ff400937c43e9 /src/network | |
parent | 74d548094307f3f3609890d839d5742296e611da (diff) | |
download | Qt-abfec3ab053e8eae1f8f60e2ab7e107a1ad7635c.zip Qt-abfec3ab053e8eae1f8f60e2ab7e107a1ad7635c.tar.gz Qt-abfec3ab053e8eae1f8f60e2ab7e107a1ad7635c.tar.bz2 |
QAuthenticator::setUser() parse user name in form user@domain
Task-number: QTBUG-19894
Change-Id: I063dbc66e5f47a83cc1c0aee8913062b4b5e42bc
(cherry picked from commit d3313bc2f095dc15718b2a1ed613489ab1ae0927)
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 818aab7..4f7f4ed 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -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 { |