diff options
author | Lively <lala7573@gmail.com> | 2020-10-10 14:20:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 16:20:24 +1100 |
commit | 782e6a2ed5d76bb5a154c56d7daf4607e5bdb93f (patch) | |
tree | 505c40daa7a32289a7850933f0da3328ca336681 /op_crates | |
parent | f4c3d501206e64cf5dfcffb4489bd5ddc0b70051 (diff) |
fix(op_crate/web): add padding on URLSearchParam (#7905)
Fixes #7888
Diffstat (limited to 'op_crates')
-rw-r--r-- | op_crates/web/11_url.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |