From aa67e1b58be7d64f93f6a2981fdda21d11fd08ef Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 5 Dec 2018 13:14:44 -0800 Subject: [PATCH] Use the URI component encoded version of the board name internally. --- src/General/Get.coffee | 2 +- src/main/Main.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 91b85f3e2..32ed5206b 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -1,7 +1,7 @@ Get = threadExcerpt: (thread) -> {OP} = thread - excerpt = ("/#{thread.board}/ - ") + ( + excerpt = ("/#{decodeURIComponent thread.board.ID}/ - ") + ( OP.info.subject?.trim() or OP.commentDisplay().replace(/\n+/g, ' // ') or OP.file?.name or diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 77216b6cd..1f820327a 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -323,6 +323,7 @@ Main = for threadRoot in $$(s.thread, board) boardObj = if (boardID = threadRoot.dataset.board) + boardID = encodeURIComponent boardID g.boards[boardID] or new Board(boardID) else g.BOARD