Skip to content

Commit

Permalink
luci-base: Enforce maximal firewall zone length in the Create / Assig…
Browse files Browse the repository at this point in the history
…n scenario as well.

Signed-off-by: Jan Pazdziora <[email protected]>
  • Loading branch information
adelton authored and systemcrash committed Jan 22, 2025
1 parent 9e10f25 commit ff52c0e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ var CBIZoneSelect = form.ListValue.extend({
display_items: this.display_size || this.size || 3,
dropdown_items: this.dropdown_size || this.size || 5,
validate: L.bind(this.validate, this, section_id),
datatype: L.hasSystemFeature('firewall4')
? ( this.multiple ? 'list(uciname)' : 'uciname' )
: this.multiple ? 'list(and(uciname,maxlength(11)))' : 'and(uciname,maxlength(11))',
create: !this.nocreate,
create_markup: '' +
'<li data-value="{{value}}">' +
Expand Down

0 comments on commit ff52c0e

Please sign in to comment.