From 15ccb7ad50363c3d1a7cfbc23c55f42dcaecdbd1 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 31 Aug 2019 07:56:07 -0400 Subject: [PATCH] only force overchan prefix if no . is present --- contrib/static/newboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/static/newboard.js b/contrib/static/newboard.js index 99b1a2f..153dc1e 100644 --- a/contrib/static/newboard.js +++ b/contrib/static/newboard.js @@ -2,7 +2,7 @@ function createBoard() { var form = document.getElementById("postform"); var e = document.getElementById("boardname"); var board = e.value; - if ( ! board.startsWith("overchan.") ) { + if ( board.indexOf(".") == -1 ) { board = "overchan." + board; } form.action = form.action + board;