libs/cbi: allow underscores in AbstractSection.create()
This commit is contained in:
parent
9ebb038a94
commit
5c4a002a46
1 changed files with 1 additions and 1 deletions
|
@ -931,7 +931,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