From: Manuel Munz Date: Thu, 18 Nov 2010 13:12:51 +0000 (+0000) Subject: applications/luci-statistics: Add double quote around host and port. Closes: #154 X-Git-Tag: 0.10.0~413 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=572e426a01e90c4e54fed8e863a2e5e182557725;hp=8c71e234dcfc78b6053912d89e2e25731671f9a3 applications/luci-statistics: Add double quote around host and port. Closes: #154 --- diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 4272169c3..8bd6262ef 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -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