Allow [] characters in url to work with ipv6. Fixes #3261

This commit is contained in:
Isaac Connor 2021-05-26 18:50:26 -04:00
parent 3b5de40d05
commit 225123dd11
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function validateForm( form ) {
} else if ( form.elements['newMonitor[Type]'].value == 'Ffmpeg' ) {
if ( !form.elements['newMonitor[Path]'].value ) {
errors[errors.length] = "<?php echo translate('BadPath') ?>";
} else if (form.elements['newMonitor[Path]'].value.match(/[\!\*'\(\)\$ ,#\[\]]/)) {
} else if (form.elements['newMonitor[Path]'].value.match(/[\!\*'\(\)\$ ,#]/)) {
warnings[warnings.length] = "<?php echo translate('BadPathNotEncoded') ?>";
}