* luci/libs: fix possible error when doing sub() on chunk in server.lua
This commit is contained in:
parent
a9a80a3be3
commit
520b4060a7
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ function Server.create_client_sources(self, client)
|
||||||
or "Unexpected EOF"
|
or "Unexpected EOF"
|
||||||
|
|
||||||
-- Line ok
|
-- Line ok
|
||||||
else
|
elseif chunk ~= nil
|
||||||
|
|
||||||
-- Strip trailing CR
|
-- Strip trailing CR
|
||||||
chunk = chunk:gsub("\r$","")
|
chunk = chunk:gsub("\r$","")
|
||||||
|
|
Loading…
Reference in a new issue