Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
fd391b26
Commit
fd391b26
authored
Sep 21, 2020
by
valenting
Browse files
Bug 1663642 - fix. r=kershaw a=RyanVM
Differential Revision:
https://phabricator.services.mozilla.com/D90070
parent
643848c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
netwerk/base/nsStandardURL.cpp
View file @
fd391b26
...
...
@@ -1497,6 +1497,9 @@ nsresult nsStandardURL::SetSpecWithEncoding(const nsACString& input,
// parse the given URL...
nsresult
rv
=
ParseURL
(
spec
,
specLength
);
if
(
mScheme
.
mLen
<=
0
)
{
rv
=
NS_ERROR_MALFORMED_URI
;
}
if
(
NS_SUCCEEDED
(
rv
))
{
// finally, use the URLSegment member variables to build a normalized
// copy of |spec|
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment