CC-3218: tream-settings: Spaces and other illegal characters should not
be allowed in the fields: server, username, password, URL, and mount point - masking was added on the front end and validators were added for the server side. - extra fix: fixed php undefined index notice problem.
This commit is contained in:
parent
b1211d3aa1
commit
30b192a809
4 changed files with 30 additions and 1 deletions
|
@ -174,5 +174,16 @@ $(document).ready(function() {
|
|||
|
||||
showErrorSections()
|
||||
setInterval('checkLiquidsoapStatus()', 1000)
|
||||
$.mask.rules = {
|
||||
'@': /[^ &<>]/,
|
||||
'u': /[0-9a-zA-Z-_.:/]/
|
||||
}
|
||||
// add masking on the fields that don't allow special chars
|
||||
|
||||
$.mask.masks = $.extend($.mask.masks,{
|
||||
regular_text:{ mask: '@', type:'repeat', 'maxLength': 256, selectCharsOnFocus: false, autoTab: false, fixedChars : '[(),:/]'},
|
||||
url:{ mask: 'u', type:'repeat', 'maxLength': 261, selectCharsOnFocus: false, autoTab: false, fixedChars : '[(),]'}
|
||||
})
|
||||
$('input:text').setMask()
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue