Bug #7242 [Ana->Csd]: Mail_mimeDecode: Notice: Uninitialized string offset
| From: | alan at akbkhome dot com | Date: | Thu, 02 Sep 2010 12:53:29 +0000 |
| Subject: | Bug #7242 [Ana->Csd]: Mail_mimeDecode: Notice: Uninitialized string offset | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4741@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=7242&edit=1
ID: 7242
Updated by: alan@akbkhome.com
Reported By: luke dot richards at emailcenteruk dot com
Summary: Mail_mimeDecode: Notice: Uninitialized string offset
-Status: Analyzed
+Status: Closed
Type: Bug
Package: Mail_mimeDecode
Operating System: Linux
Package Version: 1.3.1
PHP Version: 4.3.11
-Assigned To:
+Assigned To: alan_k
Roadmap Versions:
New Comment:
-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: alan_k
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/
Previous Comments:
------------------------------------------------------------------------
[2008-01-22 04:17:31] yunosh
This is a very straightforward, one-line fix, please apply. The notice
can be triggered by any empty content type parameter, e.g.:
Content-Type: multipart/signed; boundary="=_2tcul05gfp2c";
protocol="application/pkcs7-signature"; micalg="sha1"; name=""
------------------------------------------------------------------------
[2007-08-03 02:47:44] schmidt
Any chance a fix for this will make it in the next release? I'd rather
not have to use @ to mute errors from decode().
------------------------------------------------------------------------
[2007-07-11 09:33:24] schmidt
The suggested fix is wrong. $param_value is a string, and
$param_value[0] is used to get the first character. The problem occurs,
when $param_value is "", e.g. when a header like the following is
encountered:
Content-Type: text/plain; charset=
Headers like these occur regularly in bounce messages generated by some
mailservers.
A better fix is something like this:
- if ($param_value[0] == '"') {
+ if (substr($param_value, 0, 1) == '"') {
------------------------------------------------------------------------
[2006-04-27 10:35:25] cipri
Moved to Mail_MimeDecode subpackage.
------------------------------------------------------------------------
[2006-03-29 05:02:00] luke dot richards at emailcenteruk dot com
Changed summary to be more descriptive...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=7242
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=7242&edit=1