From 6d6c76d0df6da92dcf4151ae4d4d6df2df08f81c Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 19 May 2003 05:15:36 +0000 Subject: filename ^G. is vaild git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@880 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttpi/cgi/pttpi.c | 4 ++-- 1 file 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 @@ -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); -- cgit v1.2.3