From 225123dd11d0cb5ce153349e31c5964db9a966e7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 26 May 2021 18:50:26 -0400 Subject: [PATCH] Allow [] characters in url to work with ipv6. Fixes #3261 --- 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 3a1493909..c635af233 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -75,7 +75,7 @@ function validateForm( form ) { } else if ( form.elements['newMonitor[Type]'].value == 'Ffmpeg' ) { if ( !form.elements['newMonitor[Path]'].value ) { errors[errors.length] = ""; - } else if (form.elements['newMonitor[Path]'].value.match(/[\!\*'\(\)\$ ,#\[\]]/)) { + } else if (form.elements['newMonitor[Path]'].value.match(/[\!\*'\(\)\$ ,#]/)) { warnings[warnings.length] = ""; }