applications/luci-statistics: Add double quote around host and port. Closes: #154
authorManuel Munz <freifunk@somakoma.de>
Thu, 18 Nov 2010 13:12:51 +0000 (13:12 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 18 Nov 2010 13:12:51 +0000 (13:12 +0000)
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