From bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 19 May 2003 03:21:32 +0000 Subject: security fix git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@878 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttpi/cgi/pttpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pttpi/cgi') diff --git a/pttpi/cgi/pttpi.c b/pttpi/cgi/pttpi.c index dbaf75ce..7c9fd766 100644 --- a/pttpi/cgi/pttpi.c +++ b/pttpi/cgi/pttpi.c @@ -1,4 +1,4 @@ -/* $Id: pttpi.c,v 1.2 2003/05/19 02:39:58 in2 Exp $ */ +/* $Id: pttpi.c,v 1.3 2003/05/19 03:21:32 in2 Exp $ */ #include "bbs.h" #include "pierr.h" #include @@ -12,7 +12,7 @@ typedef xmlrpc_int32 int32; if( bid < 0 || bid > MAX_BOARD || \ !bcache[bid].brdname[0] || \ (bcache[bid].brdattr & BRD_HIDE) || \ - (!(bcache[bid].brdattr & BRD_GROUPBOARD) && \ + (bcache[bid].level && \ (bcache[bid].brdattr & BRD_POSTMASK)) ) \ return xmlrpc_build_value(env, "{s:i}", \ "errno", PIERR_NOBRD); -- cgit v1.2.3