summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-07-06 15:15:16 +0000
committerTed Trask <ttrask01@yahoo.com>2010-07-06 15:15:16 +0000
commit84c0aaf6833c678ab8592734ad98cc2c1cff7135 (patch)
tree9637ed64f90ddd0ff1254c88395bd332015a5ad4 /lib
parenta6d184669d1201d82863fe58b09cdc0117787aa7 (diff)
downloadacf-core-84c0aaf6833c678ab8592734ad98cc2c1cff7135.tar.bz2
acf-core-84c0aaf6833c678ab8592734ad98cc2c1cff7135.tar.xz
Fixed bug where single character entries in list were dropped.
Diffstat (limited to 'lib')
-rw-r--r--lib/controllerfunctions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/controllerfunctions.lua b/lib/controllerfunctions.lua
index bccd847..c1461bc 100644
--- a/lib/controllerfunctions.lua
+++ b/lib/controllerfunctions.lua
@@ -43,7 +43,7 @@ function handle_clientdata(form, clientdata)
value.value = {}
if clientdata[name] and clientdata[name] ~= "" then
-- for www we use \r separated list
- for ip in string.gmatch(clientdata[name].."\n", "%s*(%S[^\n]*%S)%s*\n") do
+ for ip in string.gmatch(clientdata[name].."\n", "%s*([^\n]*%S)%s*\n") do
table.insert(value.value, ip)
end
else