Stop double sanatizing things

This commit is contained in:
Andrew Pamment 2018-10-24 15:58:45 +10:00
parent 41b0e18ffc
commit eb8e509ac0
1 changed files with 5 additions and 4 deletions

View File

@ -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);