diff options
author | Steven Barth <steven@midlink.org> | 2008-03-31 22:24:32 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-31 22:24:32 +0000 |
commit | 184f13334f470141420a189220dd3b951aac4480 (patch) | |
tree | a110745e118b4970362599e8b45272506f67f9ba /src/ffluci/model/uci.lua | |
parent | 746fdf6b472e72cb01b0c3510cc3eb04be1237b7 (diff) |
* Fixed haserl-lua Makefile
* Fixed a bug in CBI that occured when target UCI is empty
* Added frontend for port forwarding / firewall pages
Diffstat (limited to 'src/ffluci/model/uci.lua')
-rw-r--r-- | src/ffluci/model/uci.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ffluci/model/uci.lua b/src/ffluci/model/uci.lua index 94a385c7e1..8286597807 100644 --- a/src/ffluci/model/uci.lua +++ b/src/ffluci/model/uci.lua @@ -157,12 +157,12 @@ end function Session._uci3(self, cmd) local res = ffluci.sys.execl(self.ucicmd .. " 2>&1 " .. cmd) - if res[1]:sub(1, ucicmd:len() + 1) == ucicmd .. ":" then + if res[1] and res[1]:sub(1, self.ucicmd:len()+1) == self.ucicmd..":" then return nil, res[1] end table = {} - + for k,line in pairs(res) do c, s, t = line:match("^([^.]-)%.([^.]-)=(.-)$") if c then |