mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Fixed query/ref problem.
This commit is contained in:
parent
bf8423a769
commit
1dd4c2627a
@ -101,11 +101,11 @@ nsStandardURL::GetSpec(char* *result)
|
||||
}
|
||||
}
|
||||
string.Append(mPath);
|
||||
if (nsnull != mRef) {
|
||||
if (nsnull != mRef && mRef[0] != '\0') {
|
||||
string.Append('#');
|
||||
string.Append(mRef);
|
||||
}
|
||||
if (nsnull != mQuery) {
|
||||
if (nsnull != mQuery && mQuery[0] != '\0') {
|
||||
string.Append('?');
|
||||
string.Append(mQuery);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user