Commit 5f588537 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HTTP interface: fix infinite loop

parent 0a7af0d6
...@@ -52,7 +52,6 @@ function strsplit(text, delimiter) ...@@ -52,7 +52,6 @@ function strsplit(text, delimiter)
end end
local i=1 local i=1
while 1 do while 1 do
i=i+1
local first, last = strfind(text, delimiter, pos) local first, last = strfind(text, delimiter, pos)
if first then -- found? if first then -- found?
tinsert(list,i, strsub(text, pos, first-1)) tinsert(list,i, strsub(text, pos, first-1))
...@@ -61,6 +60,7 @@ function strsplit(text, delimiter) ...@@ -61,6 +60,7 @@ function strsplit(text, delimiter)
tinsert(list,i, strsub(text, pos)) tinsert(list,i, strsub(text, pos))
break break
end end
i = i+1
end end
return list return list
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment