From 941f8d7191f5adc08146c91f5238a794208cf9fb Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 26 Jul 2019 08:13:55 +0000 Subject: [PATCH] Don't export ctrl-chars to message networks when the original message uses the Ctrl-A codes: L (CLS), < (backspace), [ (CR), or ] (LF). --- src/sbbs3/fido.cpp | 2 -- src/sbbs3/msgtoqwk.cpp | 5 ----- src/sbbs3/sbbsecho.c | 2 -- 3 files changed, 9 deletions(-) diff --git a/src/sbbs3/fido.cpp b/src/sbbs3/fido.cpp index 001ffc31da..3b6578d8a9 100644 --- a/src/sbbs3/fido.cpp +++ b/src/sbbs3/fido.cpp @@ -917,8 +917,6 @@ void sbbs_t::qwktonetmail(FILE *rep, char *block, char *into, uchar fromhub) l++; if(l>=length) break; - if((ch=ctrl_a_to_ascii_char(qwkbuf[l])) != 0) - write(fido,&ch,1); } else if(qwkbuf[l]!=LF) { if(qwkbuf[l]==QWK_NEWLINE) /* QWK cr/lf char converted to hard CR */ diff --git a/src/sbbs3/msgtoqwk.cpp b/src/sbbs3/msgtoqwk.cpp index e4f8004c91..b539c96223 100644 --- a/src/sbbs3/msgtoqwk.cpp +++ b/src/sbbs3/msgtoqwk.cpp @@ -399,11 +399,6 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, smb_t* smb ch=buf[++l]; if(ch==0 || ch=='Z') /* EOF */ break; - if((asc=ctrl_a_to_ascii_char(ch)) != 0) { - fputc(asc,qwk_fp); - size++; - continue; - } if(mode&QM_EXPCTLA) { str[0]=0; switch(toupper(ch)) { diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c index baccab69e5..ceb1ffe661 100644 --- a/src/sbbs3/sbbsecho.c +++ b/src/sbbs3/sbbsecho.c @@ -4916,8 +4916,6 @@ void export_echomail(const char* sub_code, const nodecfg_t* nodecfg, bool rescan l++; if(buf[l]==0 || buf[l]=='Z') /* EOF */ break; - if((ch=ctrl_a_to_ascii_char(buf[l])) != 0) - fmsgbuf[f++]=ch; continue; } -- GitLab