From 740f058a18661581f90e5a720418898402f8f5d6 Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Thu, 14 May 2020 19:56:18 +0100 Subject: [PATCH] url encode tag id --- 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 646bd1a..e9a90de 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/' + id); + const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURI(id)); if (res.status === 200 && res.data.success) { const tr = document.getElementById(id); tr.parentNode.removeChild(tr);