fix 368581 apple double parts base64 encoded, producing corrupt messages, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2007-02-10 00:35:29 +00:00
Родитель b49982bb9d
Коммит c8ab1dc7f1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -138,7 +138,7 @@ int fill_apple_mime_header(
return status;
PR_snprintf(tmpstr, sizeof(tmpstr),
"\"\nContent-Disposition: inline; filename=\"%s\"\n\n\n--=\n",
"\"\r\nContent-Disposition: inline; filename=\"%s\"\r\n\r\n\r\n--=\r\n",
p_ap_encode_obj->fname);
#endif
PR_snprintf(tmpstr, sizeof(tmpstr), "--%s"CRLF, p_ap_encode_obj->boundary);
@ -318,7 +318,7 @@ int ap_encode_header(
if (firstime)
{
PL_strcpy(rd_buff,
"Content-Type: application/applefile\nContent-Transfer-Encoding: base64\n\n");
"Content-Type: application/applefile\r\nContent-Transfer-Encoding: base64\r\n\r\n");
status = write_stream(p_ap_encode_obj,
rd_buff,
strlen(rd_buff));