summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-11 19:45:02 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-11 19:45:02 +0800
commit9119e88bbb9eacb8ede76abfb47f9ae154ee273e (patch)
treece3b737000fe5958f652e40808d18f17a78ced27
parent8a8e4abd55c0b91410f5a967fd2de5a4964a5c27 (diff)
downloadpttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar.gz
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar.bz2
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar.lz
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar.xz
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.tar.zst
pttbbs-9119e88bbb9eacb8ede76abfb47f9ae154ee273e.zip
append dot only if sender is valid id format
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3473 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 1966d237..3f4b20f2 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -200,7 +200,7 @@ osong(void)
}
while ((po = strstr(buf, "<~Src~>"))) {
const char *dot = "";
- if (strcmp(sender, cuser.userid) != 0)
+ if (is_validuserid(sender) && strcmp(sender, cuser.userid) != 0)
dot = ".";
po[0] = 0;
snprintf(genbuf, sizeof(genbuf), "%s%s%s%s", buf, sender, dot, po + 7);