From 349c802601694caba6964c79fc2c10516dfeca71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Thu, 26 Jan 2017 12:59:35 +0200 Subject: [PATCH] Fix: allow valid percent encoded code points in the host of non-special URL URL-host parser fix: decode percent encoded code points before the forbidden host code points check --- url.bs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/url.bs b/url.bs index d65c67a3..36c7556e 100644 --- a/url.bs +++ b/url.bs @@ -1237,7 +1237,12 @@ and a boolean isSpecial, and then runs these steps:

  • If isSpecial is true, then return the result of host parsing input. -

  • If input contains a forbidden host code point, syntax violation, +

  • Let buffer be the result of + UTF-8 decode without BOM on the + percent decoding of + UTF-8 encode on input. + +

  • If buffer contains a forbidden host code point, syntax violation, return failure.

  • Let output be the empty string.