X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmsgbase.c;h=8421dfc1133789bfd14e1d4ad07761fd0b62fa21;hp=39782600951a214175f71ef2ae5dbe27b4dfc18d;hb=7823515de1fd4ecd7bde64f93b160c92c150653b;hpb=21185d642546b081924a541bad2adcaad9416fca diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 397826009..8421dfc11 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -3108,13 +3108,9 @@ StrBuf *CtdlReadMessageBodyBuf(char *terminator, /* token signalling EOT */ } /* Unescape SMTP-style input of two dots at the beginning of the line */ - if ((dotdot) && - (StrLength(LineBuf) == 2) && - (!strcmp(ChrPtr(LineBuf), ".."))) - { + if ((dotdot) && (StrLength(LineBuf) > 1) && (ChrPtr(LineBuf)[0] == '.')) { StrBufCutLeft(LineBuf, 1); } - StrBufAppendBuf(Message, LineBuf, 0); }