Don't allow SetSpec(EmptyCString()) on nsSimpleURI. Bug 263834, r+sr=darin

git-svn-id: svn://10.0.0.236/trunk@163570 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2004-10-12 01:54:44 +00:00
parent 1789475ff6
commit 84656e336e

View File

@ -147,12 +147,6 @@ nsSimpleURI::SetSpec(const nsACString &aSpec)
} else
specLen = flat.Length();
if (specLen == 0) {
mScheme.Truncate();
mPath.Truncate();
return NS_OK;
}
// nsSimpleURI currently restricts the charset to US-ASCII
nsCAutoString spec;
NS_EscapeURL(specPtr, specLen, esc_OnlyNonASCII|esc_AlwaysCopy, spec);