diff options
author | Martin Petersson <martin.petersson@nokia.com> | 2011-06-20 11:03:40 (GMT) |
---|---|---|
committer | Martin Petersson <martin.petersson@nokia.com> | 2011-06-21 09:01:27 (GMT) |
commit | a59dab3c6785b7db38f2f43a2fcd8e29c96775af (patch) | |
tree | 609f300aac264a7c88ecbc459247745ec0004a8d /src/network/kernel | |
parent | 16158cd65e16af99bc07bbf2af7a9ee3417ff7a4 (diff) | |
download | Qt-a59dab3c6785b7db38f2f43a2fcd8e29c96775af.zip Qt-a59dab3c6785b7db38f2f43a2fcd8e29c96775af.tar.gz Qt-a59dab3c6785b7db38f2f43a2fcd8e29c96775af.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/kernel')
-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 { |