luci-0.9: merge r5382
This commit is contained in:
parent
8a4cfc4649
commit
a7e91b297c
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ function AbstractSection.create(self, section)
|
||||||
local stat
|
local stat
|
||||||
|
|
||||||
if section then
|
if section then
|
||||||
stat = section:match("^%w+$") and self.map:set(section, nil, self.sectiontype)
|
stat = section:match("^[%w_]+$") and self.map:set(section, nil, self.sectiontype)
|
||||||
else
|
else
|
||||||
section = self.map:add(self.sectiontype)
|
section = self.map:add(self.sectiontype)
|
||||||
stat = section
|
stat = section
|
||||||
|
|
Loading…
Reference in a new issue