From 84c0aaf6833c678ab8592734ad98cc2c1cff7135 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 6 Jul 2010 15:15:16 +0000 Subject: Fixed bug where single character entries in list were dropped. --- lib/controllerfunctions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/controllerfunctions.lua') 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 -- cgit v1.2.3