projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ebb038
)
libs/cbi: allow underscores in AbstractSection.create()
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 9 Oct 2009 00:45:47 +0000
(
00:45
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 9 Oct 2009 00:45:47 +0000
(
00:45
+0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index 23a5f01a56ba578c5ae95974eabaa8ec7b8b6200..1b22db0a8adf5a3837e9cd28120f2e90dfdc2ad4 100644
(file)
--- 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