summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-19 11:21:32 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-19 11:21:32 +0800
commit4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106 (patch)
tree6a3be615e9ae51f04dcba47e96bb45be775d563a
parentc98b14d3f6279f7ee5a1f294feb0a8395ea6281b (diff)
downloadpttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar.gz
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar.bz2
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar.lz
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar.xz
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.tar.zst
pttbbs-4a59e6165e8d7a117f68dfdcf14be1a9c9ed9106.zip
security fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@878 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/pttpi/cgi/pttpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/pttpi/cgi/pttpi.c b/pttbbs/pttpi/cgi/pttpi.c
index dbaf75ce..7c9fd766 100644
--- a/pttbbs/pttpi/cgi/pttpi.c
+++ b/pttbbs/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 <xmlrpc.h>
@@ -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);