From 782e6a2ed5d76bb5a154c56d7daf4607e5bdb93f Mon Sep 17 00:00:00 2001 From: Lively Date: Sat, 10 Oct 2020 14:20:24 +0900 Subject: fix(op_crate/web): add padding on URLSearchParam (#7905) Fixes #7888 --- op_crates/web/11_url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op_crates/web/11_url.js') diff --git a/op_crates/web/11_url.js b/op_crates/web/11_url.js index fb5bece25..fe7ef041a 100644 --- a/op_crates/web/11_url.js +++ b/op_crates/web/11_url.js @@ -803,7 +803,7 @@ function encodeChar(c) { return [...encoder.encode(c)] - .map((n) => `%${n.toString(16)}`) + .map((n) => `%${n.toString(16).padStart(2, "0")}`) .join("") .toUpperCase(); } -- cgit v1.2.3