Allow [] characters in url to work with ipv6. Fixes #3261
This commit is contained in:
parent
3b5de40d05
commit
225123dd11
|
@ -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') ?>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue