From 520b4060a7474aab2f4a4b9b07872a38478d29c6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 23 Jun 2008 19:20:57 +0000 Subject: [PATCH] * luci/libs: fix possible error when doing sub() on chunk in server.lua --- libs/httpd/luasrc/httpd/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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$","") -- 2.25.1