diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-05-19 22:11:05 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-05-19 22:11:08 +0200 |
commit | 64da34b13c518ce28dca7d5f7ee791507d21ac08 (patch) | |
tree | ac90a3ec691c7be8617480d94463d4e2531ee86a /modules/luci-base/luasrc/model | |
parent | 9ed48ef2a62df5406c589ef9a43da51df8d9645c (diff) |
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/model')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 0f58c16848..d5029ec904 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() } |