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)
end
local i=1
while 1 do
i=i+1
local first, last = strfind(text, delimiter, pos)
if first then -- found?
tinsert(list,i, strsub(text, pos, first-1))
......@@ -61,6 +60,7 @@ function strsplit(text, delimiter)
tinsert(list,i, strsub(text, pos))
break
end
i = i+1
end
return list
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