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 4272169c3add284a5806618c1e45640ab4516c3c..8bd6262ef6504e9b40dae3abea047b679fae837f 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