libs/sgi-cgi: fix udata vs. string in cgi backend
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 7 Aug 2009 12:24:30 +0000 (12:24 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 7 Aug 2009 12:24:30 +0000 (12:24 +0000)
libs/sgi-cgi/luasrc/sgi/cgi.lua

index f2c6f69..b86722d 100644 (file)
@@ -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()