summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-05-19 22:11:05 +0200
committerJo-Philipp Wich <jo@mein.io>2018-05-19 22:11:08 +0200
commit64da34b13c518ce28dca7d5f7ee791507d21ac08 (patch)
treeac90a3ec691c7be8617480d94463d4e2531ee86a /modules
parent9ed48ef2a62df5406c589ef9a43da51df8d9645c (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')
-rw-r--r--modules/luci-base/luasrc/model/network.lua2
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 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() }