luci-base: fix dispacher fail 1814/head
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 20 May 2018 17:51:33 +0000 (19:51 +0200)
committerAnsuel Smith <ansuelsmth@gmail.com>
Wed, 23 May 2018 00:52:08 +0000 (02:52 +0200)
commitda1e655294163bd7341d234ac5cc8b070690b28a
treede341b637a162907a5c6fcdeffa241d3456c94a9
parentba8e7fd7bc96f827ead768cd168579ab54ef825f
luci-base: fix dispacher fail

http.getenv("SCRIPT_NAME") fail if it's not provided. This can happen in the login screen when we don't have any script to load.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
modules/luci-base/luasrc/dispatcher.lua