зеркало из https://github.com/mozilla/pjs.git
fixes bug 117507 "HTTP Authentication hangs if no username/password is entered"
r=badami@netscape.com sr=jag
This commit is contained in:
Родитель
6d085a53be
Коммит
443bc5c268
|
@ -1375,8 +1375,7 @@ nsHttpChannel::GetCredentials(const char *challenges,
|
||||||
nsHttpAuthEntry *entry = nsnull;
|
nsHttpAuthEntry *entry = nsnull;
|
||||||
authCache->GetAuthEntryForDomain(host, port, realm.get(), &entry);
|
authCache->GetAuthEntryForDomain(host, port, realm.get(), &entry);
|
||||||
if (entry) {
|
if (entry) {
|
||||||
if (!nsCRT::strcmp(user->get(), entry->User()) &&
|
if (user->Equals(entry->User()) && pass->Equals(entry->Pass())) {
|
||||||
!nsCRT::strcmp(pass->get(), entry->Pass())) {
|
|
||||||
LOG(("clearing bad credentials from the auth cache\n"));
|
LOG(("clearing bad credentials from the auth cache\n"));
|
||||||
// ok, we've already tried this user:pass combo, so clear the
|
// ok, we've already tried this user:pass combo, so clear the
|
||||||
// corresponding entry from the auth cache.
|
// corresponding entry from the auth cache.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче