Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Sen <raisinten@gmail.com>2021-03-23 19:53:11 +0300
committerRich Trott <rtrott@gmail.com>2021-03-30 14:04:22 +0300
commit4197555ca9340baa0c881626e360aecbb5473c83 (patch)
tree0f889ab858066c937816c11c3cb3d579530d87b6 /src/node_url.cc
parentc14284fb0bf4b99cf021f17274c190f55d8debc3 (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.cc2
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,