mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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:
parent
37a0c77e8d
commit
b26867f744
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user