print error if garbage received from client

This commit is contained in:
2026-05-26 19:14:04 +01:00
parent 2fea793900
commit 0e03b0a763
+3
View File
@@ -118,6 +118,9 @@ int start_lua_child(lua_State *L,
lua_seti(L, -2, i++);
word = word_end + 1;
}
if(! pathname) {
die("no script name received from client");
}
lua_setglobal(L, "arg");
int status = luaL_dofile(L, pathname);
if (status) {