diff options
author | Steven Barth <steven@midlink.org> | 2008-07-05 16:27:31 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-05 16:27:31 +0000 |
commit | bbe086c9ce76c6abbc26434462736bb8b42f2a6c (patch) | |
tree | 9c7240c842577580d36202c6455dd89e6b39598c /applications/luci-olsr/luasrc/controller | |
parent | 2edc50aa4398d83d761fe67d7681d0316c457127 (diff) |
applications/luci-olsr: Fixed to work with 0.5.6
Diffstat (limited to 'applications/luci-olsr/luasrc/controller')
-rw-r--r-- | applications/luci-olsr/luasrc/controller/olsr.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua index a00dc3c547..1eede44649 100644 --- a/applications/luci-olsr/luasrc/controller/olsr.lua +++ b/applications/luci-olsr/luasrc/controller/olsr.lua @@ -157,11 +157,12 @@ function fetch_txtinfo(otable) local lines = luci.util.split(tbl, "\n") local name = table.remove(lines, 1):sub(8) local keys = luci.util.split(table.remove(lines, 1), "\t") + local split = #keys - 1 data[name] = {} for j, line in ipairs(lines) do - local fields = luci.util.split(line, "\t") + local fields = luci.util.split(line, "\t", split) data[name][j] = {} for k, key in pairs(keys) do data[name][j][key] = fields[k] |