php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54077 Empty messages in RU mailing list
Submitted: 2011-02-23 12:19 UTC Modified: 2011-05-16 10:09 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: shein@php.net Assigned: shein (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-02-23 12:19 UTC] shein@php.net
Description:
------------
There is a bug with hiding mail body messages on ru mailing list, like
these ones: http://news.php.net/php.doc.ru/1205, 
http://news.php.net/php.doc.ru/1419, http://news.php.net/php.doc.ru/1196,
http://news.php.net/php.doc.ru/1198.
According to sources, the problem is within incorrect parsing base64encoded 
messages, which after decoding contain \n separators while script expects them to 
be in \r\n (see attached patch). Patch fixes this behavior by expecting last 
character with any type of newline (\r or \n), so BC is kept.
Patch also fixes minor bug with parsing utf-8 encoding in content-type header.


Expected result:
----------------
Full letter with body message is shown.

Actual result:
--------------
Only attachment (if exists) and no body message is shown.

Patches

linux-line-endings-message-body-and-utf-8-parsing-fix.patch.txt (last revision 2011-02-23 11:20 UTC by shein@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-23 12:20 UTC] shein@php.net
The following patch has been added/updated:

Patch Name: linux-line-endings-message-body-and-utf-8-parsing-fix.patch.txt
Revision:   1298460017
URL:        http://bugs.php.net/patch-display.php?bug=54077&patch=linux-line-endings-message-body-and-utf-8-parsing-fix.patch.txt&revision=1298460017
 [2011-05-13 16:24 UTC] bjori@php.net
-Status: Open +Status: Assigned -Package: Systems problem +Package: Website problem -Assigned To: +Assigned To: shein
 [2011-05-13 16:24 UTC] bjori@php.net
You have karma to newsweb now.
 [2011-05-16 09:55 UTC] shein@php.net
Automatic comment from SVN on behalf of shein
Revision: http://svn.php.net/viewvc/?view=revision&revision=311070
Log: Fixed incorrect handling of base64-encoded letters with linux line endings (\n) which caused hiding letter's body text on doc-ru (fixes #54077).
 [2011-05-16 10:09 UTC] shein@php.net
-Status: Assigned +Status: Closed
 [2011-05-16 10:09 UTC] shein@php.net
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

Hannes, thanks for the karma. Fixed in svn.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 20:01:30 2024 UTC