From 6a54b55ede9441f95e185e93a856b3c0cce7d323 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 9 Dec 2018 07:28:11 -0800 Subject: [PATCH] Insert missing encodeURIComponent on data-board attribute in Get.threadFromRoot. --- src/General/Get.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 32ed5206b..92a5ecbe7 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -10,7 +10,8 @@ Get = excerpt threadFromRoot: (root) -> return null unless root? - g.threads["#{root.dataset.board or g.BOARD.ID}.#{root.id.match(/\d*$/)[0]}"] + {board} = root.dataset + g.threads["#{if board then encodeURIComponent(board) else g.BOARD.ID}.#{root.id.match(/\d*$/)[0]}"] threadFromNode: (node) -> Get.threadFromRoot $.x "ancestor-or-self::#{Site.xpath.thread}", node postFromRoot: (root) ->