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:
8a4cfc4
)
luci-0.9: merge r5382
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 9 Oct 2009 00:46:32 +0000
(
00:46
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 9 Oct 2009 00:46:32 +0000
(
00:46
+0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index d391acf7cc031d52bb2249f047e6eb03fbdd8acf..c75f4f88fb5be65b20502990eecc73f8441d7339 100644
(file)
--- 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