From: Jo-Philipp Wich Date: Sat, 19 May 2018 20:11:05 +0000 (+0200) Subject: luci-base: handle potential crash in luci.model.network.interface.get_i18n() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64da34b13c518ce28dca7d5f7ee791507d21ac08;p=oweals%2Fluci.git 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 --- 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() }