diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-19 11:21:32 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-19 11:21:32 +0800 |
commit | bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d (patch) | |
tree | ee4bb1391d6d1f58458ba5d8cfa568c6b0924b75 /pttpi/cgi/pttpi.c | |
parent | b175f6981a4434f7459e9e633ac3a3076f1c4c61 (diff) | |
download | pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar.gz pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar.bz2 pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar.lz pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar.xz pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.tar.zst pttbbs-bf5f7184f419fa3f05d43bdf7192f7dbe343cb0d.zip |
security fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@878 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'pttpi/cgi/pttpi.c')
-rw-r--r-- | pttpi/cgi/pttpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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); |