htp:://<blah> should lead to an invalid URL. bug 110880; r=andreas.otte@debitel.net; sr=darin.

This commit is contained in:
badami%netscape.com 2002-02-12 03:36:02 +00:00
parent 3a7b20b848
commit 3a3aece2bf

View File

@ -143,7 +143,7 @@ nsBaseURLParser::ParseURL(const char *spec, PRInt32 specLen,
// spec = <scheme>:<authority>
// spec = <scheme>:<path-no-slashes>
//
if (!IsValidScheme(spec, colon - spec)) {
if (!IsValidScheme(spec, colon - spec) || (*(colon+1) == ':')) {
NS_WARNING("malformed uri");
return NS_ERROR_MALFORMED_URI;
}