summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-09 00:45:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-09 00:45:47 +0000
commit5c4a002a46b91c6b6129907cdf96f210561786a3 (patch)
tree023acefe3f0e73f1ea17d0bdc45d29c8239a28a7 /libs/cbi
parent9ebb038a94f3d1ac6eb3737353e9a60744375e9e (diff)
libs/cbi: allow underscores in AbstractSection.create()
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 23a5f01a56..1b22db0a8a 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -931,7 +931,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