summaryrefslogtreecommitdiffstats
path: root/pttpi/cgi/pttpi.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-19 13:15:36 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-19 13:15:36 +0800
commit6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c (patch)
tree581c6f6c824674af14c755bec3a4332c9c2054fe /pttpi/cgi/pttpi.c
parent0672b9f3f07730694e9cce7deff9d96d3836c750 (diff)
downloadpttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar.gz
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar.bz2
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar.lz
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar.xz
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.tar.zst
pttbbs-6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c.zip
filename ^G. is vaild
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@880 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'pttpi/cgi/pttpi.c')
-rw-r--r--pttpi/cgi/pttpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttpi/cgi/pttpi.c b/pttpi/cgi/pttpi.c
index 1265968b..1e452f68 100644
--- a/pttpi/cgi/pttpi.c
+++ b/pttpi/cgi/pttpi.c
@@ -1,4 +1,4 @@
-/* $Id: pttpi.c,v 1.4 2003/05/19 03:52:33 in2 Exp $ */
+/* $Id: pttpi.c,v 1.5 2003/05/19 05:15:36 in2 Exp $ */
#include "bbs.h"
#include "pierr.h"
#include <xmlrpc.h>
@@ -216,7 +216,7 @@ article_readfn(xmlrpc_env *env, xmlrpc_value *param_array, void *user_data)
xmlrpc_parse_value(env, param_array, "(is)", &bid, &fn);
errorexit();
- if( fn == NULL || fn[0] != 'M' || fn[1] != '.' )
+ if( fn == NULL || (fn[0] != 'M' && fn[0] != 'G') || fn[1] != '.' )
errorreturn(PIERR_NOBRD);
check_bp_return(bid);