From eb8e509ac0718fa66224194a192eaa049afecc11 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 24 Oct 2018 15:58:45 +1000 Subject: [PATCH] Stop double sanatizing things --- src/www_msgs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/www_msgs.c b/src/www_msgs.c index 2f91bc1..165eb38 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -20,6 +20,7 @@ extern struct bbs_config conf; extern struct www_tag * aha(char *input, struct www_tag *parent); static char *www_wordwrap(char *content, int cutoff); +/* char *www_sanitize(char *inp) { int i; char *result; @@ -60,7 +61,7 @@ char *www_sanitize(char *inp) { return result; } - +*/ char *www_msgs_arealist(struct user_record *user) { stralloc page = EMPTY_STRALLOC; @@ -199,9 +200,9 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i for (i = skip_f - 1; i >= skip_t; i--) { date = (time_t)mhrs->msgs[i]->msg_h->DateWritten; gmtime_r(&date, &msg_date); - to = www_sanitize(mhrs->msgs[i]->to); - from = www_sanitize(mhrs->msgs[i]->from); - subject = www_sanitize(mhrs->msgs[i]->subject); + to = strdup(mhrs->msgs[i]->to); + from = strdup(mhrs->msgs[i]->from); + subject = strdup(mhrs->msgs[i]->subject); child_tag = www_tag_new("div", NULL);