summaryrefslogtreecommitdiff
path: root/op_crates
diff options
context:
space:
mode:
authorLively <lala7573@gmail.com>2020-10-10 14:20:24 +0900
committerGitHub <noreply@github.com>2020-10-10 16:20:24 +1100
commit782e6a2ed5d76bb5a154c56d7daf4607e5bdb93f (patch)
tree505c40daa7a32289a7850933f0da3328ca336681 /op_crates
parentf4c3d501206e64cf5dfcffb4489bd5ddc0b70051 (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.js2
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();
}