This commit is contained in:
Andrew Pamment 2016-08-21 19:33:17 +10:00
parent 824cec337d
commit e27dab12a7

View File

@ -340,9 +340,9 @@ char *www_email_display(struct user_record *user, int email) {
for (i=0;i<strlen(body);i++) { for (i=0;i<strlen(body);i++) {
if (body[i] == '\r') { if (body[i] == '\r') {
sprintf(buffer, "<br />"); sprintf(buffer, "<br />");
} else if (body[z] == '<') { } else if (body[i] == '<') {
sprintf(buffer, "&lt;"); sprintf(buffer, "&lt;");
} else if (body[z] == '>') { } else if (body[i] == '>') {
sprintf(buffer, "&gt;"); sprintf(buffer, "&gt;");
} else { } else {
sprintf(buffer, "%c", body[i]); sprintf(buffer, "%c", body[i]);