From 824cec337da952e880a67a6b10043af8254df876 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 21 Aug 2016 19:32:09 +1000 Subject: [PATCH] Attempt to strip html --- www_email.c | 4 ++++ www_msgs.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/www_email.c b/www_email.c index c363316..26ff531 100644 --- a/www_email.c +++ b/www_email.c @@ -340,6 +340,10 @@ char *www_email_display(struct user_record *user, int email) { for (i=0;i"); + } else if (body[z] == '<') { + sprintf(buffer, "<"); + } else if (body[z] == '>') { + sprintf(buffer, ">"); } else { sprintf(buffer, "%c", body[i]); } diff --git a/www_msgs.c b/www_msgs.c index 814ba63..4f1611a 100644 --- a/www_msgs.c +++ b/www_msgs.c @@ -7,6 +7,9 @@ #include "bbs.h" #include "jamlib/jam.h" +#define IN 0 +#define OUT 1 + extern struct bbs_config conf; static int new_messages(struct user_record *user, int conference, int area) { @@ -454,6 +457,10 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i for (z=0;z"); + } else if (body[z] == '<') { + sprintf(buffer, "<"); + } else if (body[z] == '>') { + sprintf(buffer, ">"); } else { sprintf(buffer, "%c", body[z]); }