From 312ac55f526f388f6154c9861f232659d348aae2 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 5 Jan 2008 14:24:15 +0000 Subject: - fix potential exploits (reported by kcwu) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3795 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbslua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/bbslua.c') diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index 43346a19..2a1096fb 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -175,7 +175,7 @@ bl_getdata(lua_State* L) if (n > 0) len = lua_tointeger(L, 1); - if (n > 2) + if (n > 1) echo = lua_tointeger(L, 2); if (len < 2) @@ -449,7 +449,7 @@ bbslua(const char *fpath) move(b_lines-3, 0); clrtobot(); outs("\n"); outs(errmsg); - vmsg("BBS-Lua 錯誤: 請修正程式碼。"); + vmsg("BBS-Lua 錯誤: 請通知作者修正程式碼。"); lua_close(L); return 0; } -- cgit v1.2.3