From 5da597d410e6d4c3bcbd38134685354ed06cc44b Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Fri, 5 Feb 2021 16:21:48 +0000 Subject: [PATCH] encodeURIComponent --- public/templates/views/tags.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/views/tags.tmpl b/public/templates/views/tags.tmpl index cec062b..9af48f7 100644 --- a/public/templates/views/tags.tmpl +++ b/public/templates/views/tags.tmpl @@ -87,7 +87,7 @@ } async function deleteTag(id) { - const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURI(id)); + const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURIComponent(id)); if (res.status === 200 && res.data.success) { const tr = document.getElementById(id); tr.parentNode.removeChild(tr);