luci-0.9: merge r5382

This commit is contained in:
Jo-Philipp Wich 2009-10-09 00:46:32 +00:00
parent 8a4cfc4649
commit a7e91b297c

View file

@ -893,7 +893,7 @@ function AbstractSection.create(self, section)
local stat
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
section = self.map:add(self.sectiontype)
stat = section