* Fixed a wrap bug in convert_internet_message()
authorArt Cancro <ajc@citadel.org>
Thu, 26 Aug 2010 02:35:36 +0000 (02:35 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 26 Aug 2010 02:35:36 +0000 (02:35 +0000)
* This also is backported to stable, which is now 7.84

citadel/internet_addressing.c

index 7a9f4b07816810967e106731f4e2781ddb675c36..8bfdd6a1c952adf9b36fc650fc83f71e0845e439 100644 (file)
@@ -779,8 +779,7 @@ struct CtdlMessage *convert_internet_message_buf(StrBuf **rfc822)
                       (done == 0) ) 
                {
 
-                       if ((*pos=='\n') &&
-                           (!isspace(*(pos+1)))) 
+                       if ( (*pos=='\n') && ((*pos+1)!=0x20) && ((*pos+1)!=0x09) )
                        {
                                end = pos;
                        }