encodeURIComponent

This commit is contained in:
rxdn 2021-02-05 16:21:48 +00:00
parent bb203a081c
commit 5da597d410

View File

@ -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);