summaryrefslogtreecommitdiffstats
path: root/url/url_canon_relative.cc
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-18 20:16:41 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-18 20:16:41 +0000
commit4cee66369c0571fb9e29dbddf34fced0e667d84c (patch)
tree353dd9e5b10515b86793764edd19707cd1d8fca9 /url/url_canon_relative.cc
parent71053358076255a529813a37fcbc3ad54e3b4c20 (diff)
downloadchromium_src-4cee66369c0571fb9e29dbddf34fced0e667d84c.zip
chromium_src-4cee66369c0571fb9e29dbddf34fced0e667d84c.tar.gz
chromium_src-4cee66369c0571fb9e29dbddf34fced0e667d84c.tar.bz2
Make relative file url parsing fail where there is a host:port in the relative URL.
BUG=285720 R=brettw@chromium.org, jar@chromium.org Review URL: https://codereview.chromium.org/23464046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_canon_relative.cc')
-rw-r--r--url/url_canon_relative.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/url/url_canon_relative.cc b/url/url_canon_relative.cc
index 84317f8..f9e6c13 100644
--- a/url/url_canon_relative.cc
+++ b/url/url_canon_relative.cc
@@ -479,7 +479,7 @@ bool DoResolveRelativeURL(const char* base_url,
// handles the special case where the URL is only slashes, since that
// doesn't have a host part either.
if (base_is_file &&
- (num_slashes > 2 || num_slashes == relative_component.len)) {
+ (num_slashes >= 2 || num_slashes == relative_component.len)) {
return DoResolveAbsoluteFile(relative_url, relative_component,
query_converter, output, out_parsed);
}