Add missing allowed board name characters

This commit is contained in:
Ophir LOJKINE 2020-05-07 22:43:17 +02:00
parent b5bfc24a32
commit e6811518dc

View file

@ -69,7 +69,7 @@ const boardTemplate = new templating.BoardTemplate(path.join(config.WEBROOT, 'bo
const indexTemplate = new templating.Template(path.join(config.WEBROOT, 'index.html'));
function validateBoardName(boardName) {
if (/^[\w%]*$/.test(boardName)) return boardName;
if (/^[\w%\-_~]*$/.test(boardName)) return boardName;
throw new Error("Illegal board name: " + boardName);
}