projects
/
project
/
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
23a5f01
..
1b22db0
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
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
else
section = self.map:add(self.sectiontype)
stat = section