From d974b08694a18783487d1342099bb460c0d14215 Mon Sep 17 00:00:00 2001 From: dennisdebel Date: Fri, 22 May 2015 17:56:48 +0200 Subject: [PATCH] quick fix for too long user names --- web/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/main.js b/web/main.js index 7170df2..a75d50f 100644 --- a/web/main.js +++ b/web/main.js @@ -77,7 +77,7 @@ function onSubmitMessage(){ return false; } var namm = document.getElementById('name').value; - if ( !namm || namm === "" ) { + if ( !namm || namm === "" || namm.length > 20) { /* prevent too long usernames */ namm = "anonymous"; } addOutboxItem( namm, "

"+msg+"

" );