From 5a4329dc960af5d47f9a06c3c01f8b61de3e68f7 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 6 Oct 2009 19:41:27 +0000 Subject: * the 'deleted' (by owner[0] == '-') check should be also applied to recommend otherwise people may still give comments to it. * also, removed the check of owner[1] because most other checks do not examine it. * note: there may be many, many other places to fix like recommend... however sine we've rejected '-' for anonymous prefix, the bug may not easily appear. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 643a26fe..96c91a6f 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1668,7 +1668,7 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct) return DONOTHING; // if file is SAFE_DELETED, skip it. - if (fhdr->owner[0] == '-' && fhdr->owner[1] == 0) + if (fhdr->owner[0] == '-') return DONOTHING; setbfile(fname, currboard, fhdr->filename); @@ -2493,7 +2493,7 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) } #ifdef SAFE_ARTICLE_DELETE - if (fhdr->filename[0] == '.') { + if (fhdr->filename[0] == '.' || fhdr->owner[0] == '-') { vmsg("¥»¤å¤w§R°£"); return FULLUPDATE; } -- cgit v1.2.3