Strip 0x01 from messages in quote wtf is that doing there anyway

This commit is contained in:
Andrew Pamment 2016-04-09 12:50:07 +10:00
parent 25344a392c
commit 40251fd7e9

View File

@ -286,6 +286,8 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from
for (i=0;i<strlen(quote);i++) { for (i=0;i<strlen(quote);i++) {
if (quote[i] == '\r') { if (quote[i] == '\r') {
fprintf(fptr, "\r\n"); fprintf(fptr, "\r\n");
} else if (quote[i] == 0x1) {
continue;
} else { } else {
fprintf(fptr, "%c", quote[i]); fprintf(fptr, "%c", quote[i]);
} }