luci-mod-network: dhcp.js: properly validate hostname values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 98a9d07d89
)
This commit is contained in:
parent
89ca03f3b1
commit
29ed1f9121
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ return 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