summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--innbbsd/receive_article.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c
index dbd542ae..9960e7f8 100644
--- a/innbbsd/receive_article.c
+++ b/innbbsd/receive_article.c
@@ -760,7 +760,16 @@ post_article(homepath, userid, board, writebody, pathname, firstpath)
sprintf(header.date, "%2d/%02d", ptime->tm_mon + 1, ptime->tm_mday);
}
#endif
-
+ {
+ int i;
+ for( i = 0 ; header.title[i] != 0 && i < sizeof(header.title) ; ++i )
+ if( header.title[i] == '\n' ||
+ header.title[i] == '\r' ||
+ header.title[i] == '\033' ){
+ header.title[i] = 0;
+ break;
+ }
+ }
append_record(index, &header, sizeof(header));
if ((bid = getbnum(board)) > 0) {