diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-07 03:41:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-07 03:41:27 +0800 |
commit | 5a4329dc960af5d47f9a06c3c01f8b61de3e68f7 (patch) | |
tree | bf773d88e7bf0cb66d389dcb051b2e8838d470e5 | |
parent | c5e1a71ebe811f3f1f505a07332af612581dc4df (diff) | |
download | pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar.gz pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar.bz2 pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar.lz pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar.xz pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.tar.zst pttbbs-5a4329dc960af5d47f9a06c3c01f8b61de3e68f7.zip |
* 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
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files 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; } |