From 1dc81af7c3e7498a67de4a9514395bdf6d975312 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Wed, 17 Mar 2021 09:55:03 +0100 Subject: [PATCH] fix: encode URI value when deleting tag --- frontend/CHANGELOG.md | 2 ++ frontend/src/store/tag/api.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/CHANGELOG.md b/frontend/CHANGELOG.md index 4603b18e62..f04c6a6540 100644 --- a/frontend/CHANGELOG.md +++ b/frontend/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). The latest version of this document is always available in [releases][releases-url]. +# 3.14.1 +- fix: uriencode tag.value when deleting a tag # 3.14.0 - fix: should fetch projects once to make sure we know about projects diff --git a/frontend/src/store/tag/api.js b/frontend/src/store/tag/api.js index 85245b8d15..150d84d8f4 100644 --- a/frontend/src/store/tag/api.js +++ b/frontend/src/store/tag/api.js @@ -18,7 +18,7 @@ function create(tag) { } function deleteTag(tag) { - return fetch(`${URI}/${tag.type}/${tag.value}`, { + return fetch(`${URI}/${tag.type}/${encodeURIComponent(tag.value)}`, { method: 'DELETE', headers, credentials: 'include',