diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-19 13:15:36 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-19 13:15:36 +0800 |
commit | 48bf3a18a8c928b685fbf6d300d405fe34c36c9a (patch) | |
tree | bc6c4612452bb337c64b9afcf0d82d47e4e7b893 | |
parent | 1ec7641a10a3a05075a9e8ba3433e6419a43a23d (diff) | |
download | pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar.gz pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar.bz2 pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar.lz pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar.xz pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.tar.zst pttbbs-48bf3a18a8c928b685fbf6d300d405fe34c36c9a.zip |
filename ^G. is vaild
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@880 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/pttpi/cgi/pttpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/pttpi/cgi/pttpi.c b/pttbbs/pttpi/cgi/pttpi.c index 1265968b..1e452f68 100644 --- a/pttbbs/pttpi/cgi/pttpi.c +++ b/pttbbs/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); |