luci-mod-network: dhcp.js: properly validate hostname values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
6d17667524
commit
98a9d07d89
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ return L.view.extend({
|
|||
ss.anonymous = true;
|
||||
|
||||
so = ss.option(form.Value, 'name', _('Hostname'));
|
||||
so.datatype = 'hostname("strict")';
|
||||
so.validate = validateHostname;
|
||||
so.rmempty = true;
|
||||
so.write = function(section, value) {
|
||||
uci.set('dhcp', section, 'name', value);
|
||||
|
|
Loading…
Reference in a new issue