Re: Bug #17959 [NEW]: Boundaries ending with non-word characters are ignored

From: Date: Wed, 20 Oct 2010 06:26:04 +0000
Subject: Re: Bug #17959 [NEW]: Boundaries ending with non-word characters are ignored
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-5766@lists.php.net to get a copy of this message
Alex, the bug system is playing up, so I'm can't update a response. boundary split should split on the boundary string, followed by a line break. - Can you add a full email example where this problem occurs, either to this bug report, or create a new one. Regards Alan On Saturday, October 16, 2010 04:48 AM, alex at innovacomputing dot com wrote:
From:             #08fd1dac5cabf93abc6
Operating system: Debian Linux Package version: 1.5.4
PHP version:      5.2.9
Package:          Mail_mimeDecode
Bug Type:         Bug
Bug description: Boundaries ending with non-word characters are ignored Description: ------------ When using Mail_mimeDecode on an email that uses boundaries that end with a non-word character, such as '>', such boundaries are not recognized by the regular expression used in _boundarySplit(). This is because the non-word character causes the \b assertion to fail. As a result, the various parts of the email body are not properly parsed. Test script: --------------- An example boundary line that I've come across in real-world testing that causes the assertion to fail is: --DC_BOUND_PRE_<1286549542.0000748f8b85> Expected result: ---------------- All mail parts are recognized. Actual result: -------------- All but the first part are discarded.


« previous php.pear.qa (#5766) next »