applications/luci-statistics: Add double quote around host and port. Closes: #154
[project/luci.git] / applications / luci-statistics / root / usr / bin / stat-genconfig
index 4272169..8bd6262 100755 (executable)
@@ -162,9 +162,9 @@ function config_network( c )
 
                                if host then
                                        if port then
-                                               str = str .. "\t" .. key .. " " .. host .. " " .. port .. "\n"
+                                               str = str .. "\t" .. key .. " \"" .. host .. "\" \"" .. port .. "\"\n"
                                        else
-                                               str = str .. "\t" .. key .. " " .. host .. "\n"
+                                               str = str .. "\t" .. key .. " \"" .. host .. "\"\n"
                                        end
                                end
                                                end