diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-23 19:20:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-23 19:20:57 +0000 |
commit | 520b4060a7474aab2f4a4b9b07872a38478d29c6 (patch) | |
tree | 7f9b20998d8ee5e83d834a8a1614d57caf67583f | |
parent | a9a80a3be34dc1fa83b14fb8503a9dd4849e8310 (diff) |
* luci/libs: fix possible error when doing sub() on chunk in server.lua
-rw-r--r-- | libs/httpd/luasrc/httpd/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd/server.lua b/libs/httpd/luasrc/httpd/server.lua index 2bb44bd02..2c415009e 100644 --- a/libs/httpd/luasrc/httpd/server.lua +++ b/libs/httpd/luasrc/httpd/server.lua @@ -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$","") |