mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
htp:://<blah> should lead to an invalid URL. bug 110880; r=andreas.otte@debitel.net; sr=darin.
This commit is contained in:
parent
3a7b20b848
commit
3a3aece2bf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user