diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2011-01-24 13:21:18 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2011-01-24 14:20:45 (GMT) |
commit | 1137379e98cab8cc67fac70b31c97001c4473eb0 (patch) | |
tree | c3d19a4b3cbc33fd874ed9eb70f86a50d42c0b2d /src | |
parent | 7905e38d84a060176e53ffe8d7da8710ea0180fe (diff) | |
download | Qt-1137379e98cab8cc67fac70b31c97001c4473eb0.zip Qt-1137379e98cab8cc67fac70b31c97001c4473eb0.tar.gz Qt-1137379e98cab8cc67fac70b31c97001c4473eb0.tar.bz2 |
HTTP: fix digest authentication
no need to extract the realm from the user; with digest authentication
the realm is an attribute of its own.
Reviewed-by: Markus Goetz
Task-number: QTBUG-15070
Diffstat (limited to 'src')
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 73143e1..d61d3b7 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -213,24 +213,6 @@ void QAuthenticator::setUser(const QString &user) int separatorPosn = 0; switch(d->method) { - case QAuthenticatorPrivate::DigestMd5: - if((separatorPosn = user.indexOf(QLatin1String("\\"))) != -1) { - //domain name is present - d->userDomain.clear(); - d->realm = user.left(separatorPosn); - d->user = user.mid(separatorPosn + 1); - } else if((separatorPosn = user.indexOf(QLatin1String("@"))) != -1) { - //domain name is present - d->userDomain.clear(); - d->realm = user.mid(separatorPosn + 1); - d->user = user.left(separatorPosn); - } else { - d->user = user; - d->realm.clear(); - d->userDomain.clear(); - } - break; - case QAuthenticatorPrivate::Ntlm: if((separatorPosn = user.indexOf(QLatin1String("\\"))) != -1) { //domain name is present @@ -253,6 +235,7 @@ void QAuthenticator::setUser(const QString &user) break; default: d->user = user; + d->userDomain.clear(); break; } } |