From 08c01c58c8eb35f9d5063320c7dc0d7eb57fa44d Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 20 Apr 2018 16:20:05 +1000 Subject: [PATCH] strip ansi codes from www reply --- src/www_msgs.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/www_msgs.c b/src/www_msgs.c index 0633b8d..057f3d5 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -272,6 +272,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i char *replyid = NULL; char *body = NULL; char *body2 = NULL; + char *replybody = NULL; int z; struct tm msg_date; time_t date; @@ -284,7 +285,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i char *from_s; char *subject_s; char *to_s; - + int l1, l2; char *aha_text; char *aha_out; @@ -610,13 +611,26 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i strcat(page, buffer); len += strlen(buffer); + replybody = (char *)malloc(strlen(body) + 1); + + l2 = 0; + for (l1=0;l1