diff options
author | Darshan Sen <raisinten@gmail.com> | 2021-03-23 19:53:11 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-03-30 14:04:22 +0300 |
commit | 4197555ca9340baa0c881626e360aecbb5473c83 (patch) | |
tree | 0f889ab858066c937816c11c3cb3d579530d87b6 /src/node_url.cc | |
parent | c14284fb0bf4b99cf021f17274c190f55d8debc3 (diff) |
url: forbid pipe in URL host
Fixes: https://github.com/nodejs/node/issues/37862
PR-URL: https://github.com/nodejs/node/pull/37877
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_url.cc')
-rw-r--r-- | src/node_url.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_url.cc b/src/node_url.cc index 399c37638ad..554ee855848 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -208,7 +208,7 @@ CHAR_TEST(8, IsForbiddenHostCodePoint, ch == ' ' || ch == '#' || ch == '%' || ch == '/' || ch == ':' || ch == '?' || ch == '@' || ch == '[' || ch == '<' || ch == '>' || ch == '\\' || ch == ']' || - ch == '^') + ch == '^' || ch == '|') // https://url.spec.whatwg.org/#windows-drive-letter TWO_CHAR_STRING_TEST(8, IsWindowsDriveLetter, |