Stop double sanatizing things

This commit is contained in:
Andrew Pamment 2018-10-24 15:58:45 +10:00
parent 41b0e18ffc
commit eb8e509ac0

View File

@ -20,6 +20,7 @@
extern struct bbs_config conf; extern struct bbs_config conf;
extern struct www_tag * aha(char *input, struct www_tag *parent); extern struct www_tag * aha(char *input, struct www_tag *parent);
static char *www_wordwrap(char *content, int cutoff); static char *www_wordwrap(char *content, int cutoff);
/*
char *www_sanitize(char *inp) { char *www_sanitize(char *inp) {
int i; int i;
char *result; char *result;
@ -60,7 +61,7 @@ char *www_sanitize(char *inp) {
return result; return result;
} }
*/
char *www_msgs_arealist(struct user_record *user) { char *www_msgs_arealist(struct user_record *user) {
stralloc page = EMPTY_STRALLOC; 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--) { for (i = skip_f - 1; i >= skip_t; i--) {
date = (time_t)mhrs->msgs[i]->msg_h->DateWritten; date = (time_t)mhrs->msgs[i]->msg_h->DateWritten;
gmtime_r(&date, &msg_date); gmtime_r(&date, &msg_date);
to = www_sanitize(mhrs->msgs[i]->to); to = strdup(mhrs->msgs[i]->to);
from = www_sanitize(mhrs->msgs[i]->from); from = strdup(mhrs->msgs[i]->from);
subject = www_sanitize(mhrs->msgs[i]->subject); subject = strdup(mhrs->msgs[i]->subject);
child_tag = www_tag_new("div", NULL); child_tag = www_tag_new("div", NULL);