From 58ac26f60ea622d97acfec61c5e017ce22e8f9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Mon, 16 Oct 2017 18:47:07 +0200 Subject: [PATCH] fixup! http: disallow two-byte characters in URL path --- lib/_http_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index 190216665d1079..cad3994d381a81 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -46,7 +46,7 @@ const errors = require('internal/errors'); // with an additional rule for ignoring percentage-escaped characters, but // that's a) hard to capture in a regular expression that performs well, and // b) possibly too restrictive for real-world usage. So instead we restrict the -// filter to just control characters and spaces. +// filter to just control characters, spaces and two-byte characters. // // This function is used in the case of small paths, where manual character code // checks can greatly outperform the equivalent regexp (tested in V8 5.4).