Fixed query/ref problem.

This commit is contained in:
warren%netscape.com 1999-07-20 08:46:35 +00:00
parent bf8423a769
commit 1dd4c2627a

View File

@ -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);
}