Archived
1
0

only force overchan prefix if no . is present

This commit is contained in:
Jeff 2019-08-31 07:56:07 -04:00
parent 12709d364b
commit 15ccb7ad50

View File

@ -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;