fixes bug 110508 "doing SetSpec() with a string with a query doesn't do the

right thing" r=bbaetz, sr=sspitzer
This commit is contained in:
darin%netscape.com 2001-11-19 20:21:42 +00:00
parent 37a0c77e8d
commit b26867f744

View File

@ -254,7 +254,7 @@ nsBaseURLParser::ParsePath(const char *path, PRInt32 pathLen,
const char *p = 0;
for (p = path; *p; ++p) {
// only match the query string if it precedes the reference fragment
if (!ref_beg && *p == '?')
if (!ref_beg && !query_beg && *p == '?')
query_beg = p + 1;
else if (*p == '#') {
ref_beg = p + 1;