From: Jo-Philipp Wich Date: Fri, 9 Oct 2009 00:46:32 +0000 (+0000) Subject: luci-0.9: merge r5382 X-Git-Tag: 0.9.0~118 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a7e91b297cb8208cd62599052ea23707d7cf6218;p=project%2Fluci.git luci-0.9: merge r5382 --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index d391acf7cc..c75f4f88fb 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -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