From 71db9b84e68a5d8b7dbd93050dbd004245707579 Mon Sep 17 00:00:00 2001 From: Robin Daermann Date: Thu, 24 Mar 2016 14:37:24 +0100 Subject: [PATCH] Allow spaces in monitor names --- web/skins/classic/views/js/monitor.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 1ceba3fff..833b8f441 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -59,7 +59,7 @@ function validateForm( form ) { var errors = new Array(); - if ( form.elements['newMonitor[Name]'].value.search( /[^\w-]/ ) >= 0 ) + if ( form.elements['newMonitor[Name]'].value.search( /[^\w- ]/ ) >= 0 ) errors[errors.length] = ""; else if ( form.elements.mid.value == 0 && monitorNames[form.elements['newMonitor[Name]'].value] ) errors[errors.length] = "";