From: Jo-Philipp Wich Date: Fri, 7 Aug 2009 12:24:30 +0000 (+0000) Subject: libs/sgi-cgi: fix udata vs. string in cgi backend X-Git-Tag: 0.10.0~1222 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ff82a0142472a1eabca9db2fcbebfb73ae5c8b2;p=oweals%2Fluci.git libs/sgi-cgi: fix udata vs. string in cgi backend --- diff --git a/libs/sgi-cgi/luasrc/sgi/cgi.lua b/libs/sgi-cgi/luasrc/sgi/cgi.lua index f2c6f6957..b86722d73 100644 --- a/libs/sgi-cgi/luasrc/sgi/cgi.lua +++ b/libs/sgi-cgi/luasrc/sgi/cgi.lua @@ -80,7 +80,7 @@ function run() io.write(hcache) io.write("\r\n") elseif id == 4 then - io.write(data1) + io.write(tostring(data1 or "")) elseif id == 5 then io.flush() io.close()