base: webadmin: Don't take substring of nil variable
authorDaniel Dickinson <redacted>
Thu, 29 Dec 2016 20:04:57 +0000 (15:04 -0500)
committerDaniel Dickinson <redacted>
Fri, 30 Dec 2016 18:44:22 +0000 (13:44 -0500)
commit7bfd36d5855100fe18a7759644aef697e9d03cee
treecafc94631484971ba11da9d5b7d2d888f638b70c
parentf12fdba222c87e9a38c8cc4496964ac3fb386f7f
base: webadmin: Don't take substring of nil variable

When converting interface names to UCI network names
webadmin fails if there is no UCI network name because
webadmin failed to ensure uciname has a value before
attempting to take a substring.

Signed-off-by: Daniel Dickinson <redacted>
modules/luci-base/luasrc/tools/webadmin.lua
git clone https://git.99rst.org/PROJECT