From da17f11e1abf8003483baf8d01de5a9b329d8806 Mon Sep 17 00:00:00 2001 From: Fabricio Winter Date: Fri, 30 Dec 2022 13:49:59 -0300 Subject: [PATCH] Fix tag name escaping on upload --- client/js/views/post_upload_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/views/post_upload_view.js b/client/js/views/post_upload_view.js index 212e1536..7b0d6967 100644 --- a/client/js/views/post_upload_view.js +++ b/client/js/views/post_upload_view.js @@ -320,7 +320,7 @@ class PostUploadView extends events.EventTarget { uploadable.tags = []; if (this._commonTagsInputNode) { var tags = this._commonTagsInputNode.value.split(' '); - tags = tags.filter(t => t != ""); + tags = tags.filter(t => t != "").map(t => t.replace('\\', '')); uploadable.tags = uploadable.tags.concat(tags); } uploadable.relations = [];