* luci/libs: fix possible error when doing sub() on chunk in server.lua

This commit is contained in:
Jo-Philipp Wich 2008-06-23 19:20:57 +00:00
parent a9a80a3be3
commit 520b4060a7

View file

@ -124,7 +124,7 @@ function Server.create_client_sources(self, client)
or "Unexpected EOF"
-- Line ok
else
elseif chunk ~= nil
-- Strip trailing CR
chunk = chunk:gsub("\r$","")