summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/tools
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc/tools')
-rw-r--r--modules/luci-base/luasrc/tools/status.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/tools/status.lua b/modules/luci-base/luasrc/tools/status.lua
index 5012111815..06a9ad4154 100644
--- a/modules/luci-base/luasrc/tools/status.lua
+++ b/modules/luci-base/luasrc/tools/status.lua
@@ -187,7 +187,9 @@ function switch_status(devs)
local switches = { }
for dev in devs:gmatch("[^%s,]+") do
local ports = { }
- local swc = io.popen("swconfig dev %q show" % dev, "r")
+ local swc = io.popen("swconfig dev %s show"
+ % luci.util.shellquote(dev), "r")
+
if swc then
local l
repeat