From a7e91b297cb8208cd62599052ea23707d7cf6218 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 9 Oct 2009 00:46:32 +0000 Subject: [PATCH] luci-0.9: merge r5382 --- libs/cbi/luasrc/cbi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2