luci/modules/luci-mod-admin-full
Brian J. Murrell f8682164c1 Fix bad argument #1 to 'tonumber'
Fixes [FS#1118](https://bugs.lede-project.org/index.php?do=details&task_id=1118)

Luci chokes on devices that do not have _iptables_ installed with:

/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute firstchild dispatcher target for entry '/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/admin/status'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occured: [string "/usr/lib/lua/luci/view/admin_status/index.h..."]:34: bad argument #1 to 'tonumber' (string expected, got nil)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

The code should be more defensive.
2018-01-26 18:31:19 +08:00
..
htdocs/luci-static/resources Rework LuCI build system 2015-01-08 16:26:20 +01:00
luasrc Fix bad argument #1 to 'tonumber' 2018-01-26 18:31:19 +08:00
root/etc/uci-defaults luci-mod-admin-full: figure out diagnostics host in postinstall 2016-10-06 17:13:23 +02:00
src luci: ignore '::1' in realtime connections 2017-02-20 16:47:56 +02:00
Makefile Move libubus-lua dependency to luci-base 2015-10-27 13:09:21 +01:00