fixes bug 146074 "Proxy-authorization not on all requests after authentication"
r=rjesup@wgate.com sr=rpotts@netscape.com git-svn-id: svn://10.0.0.236/trunk@122002 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4f895f38d3
commit
355294781f
@ -281,14 +281,17 @@ nsHttpAuthNode::GetAuthEntryForPath(const char *path,
|
||||
// directory of an existing entry.
|
||||
for (PRInt32 i=0; i<mList.Count(); ++i) {
|
||||
nsHttpAuthEntry *entry = (nsHttpAuthEntry *) mList[i];
|
||||
// path's can be NULL
|
||||
if (!path || !entry->Path()) {
|
||||
if (path == entry->Path()) {
|
||||
const char *entryPath = entry->Path();
|
||||
// path's can be empty (even NULL)
|
||||
if (!path || !*path) {
|
||||
if (!entryPath || !*entryPath) {
|
||||
*result = entry;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (!nsCRT::strncmp(path, entry->Path(), (unsigned int)strlen(entry->Path()))) {
|
||||
else if (!entryPath || !*entryPath)
|
||||
continue;
|
||||
else if (!nsCRT::strncmp(path, entryPath, (unsigned int)strlen(entryPath))) {
|
||||
*result = entry;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user