From 64da34b13c518ce28dca7d5f7ee791507d21ac08 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 19 May 2018 22:11:05 +0200 Subject: [PATCH] luci-base: handle potential crash in luci.model.network.interface.get_i18n() Should prevent the crash mentioned in #1779. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/model/network.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 0f58c1684..d5029ec90 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -1273,7 +1273,7 @@ function interface.get_i18n(self) return "%s: %s %q" %{ lng.translate("Wireless Network"), self.wif:active_mode(), - self.wif:active_ssid() or self.wif:active_bssid() or self.wif:id() + self.wif:active_ssid() or self.wif:active_bssid() or self.wif:id() or "?" } else return "%s: %q" %{ self:get_type_i18n(), self:name() } -- 2.25.1