ID: 19275
Updated by: till@php.net
Reported By: chunshengster@gmail.com
Summary: unfold lines of quote printable text parsed wrong
values!
-Status: Analyzed
+Status: Closed
Type: Bug
Package: File_IMC
Operating System: Ubuntu linux 11.10
Package Version: 0.4.3
PHP Version: 5.3.10
Assigned To: till
Roadmap Versions:
New Comment:
-Status: Analyzed
+Status: Closed
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2012-08-10 17:41:17] till
-Assigned To:
+Assigned To: till
Can you give me a unified diff or (even better) a pull request:
http://github.com/pear/File_IMC
------------------------------------------------------------------------
[2012-02-15 12:11:01] doconnor
-Status: Open
+Status: Analyzed
Thanks for the patch
------------------------------------------------------------------------
[2012-02-03 08:04:47] chunshengster
Added #patch bug:19275;patch:File_IMC.patch;revision:1328256287;.
------------------------------------------------------------------------
[2012-02-03 06:54:58] chunshengster
Description:
------------
when a vcard field like this :
N;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:=E9=9B=B6=E5=94=AE=E8=83=A1=E6=9D=9C=\n=E6=96=8C;;;;
then, File_IMC parse.php only parsed this:
N;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:=E9=9B=B6=E5=94=AE=E8=83=A1=E6=9D=9C=
the value "=E6=96=8C;;;;" will lost.
especially when the value like this:
N;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:=\n=E9=9B=B6=E5=94=AE=E8=83=A1=E6=9D=9C=\n=E6=96=8C;;;;
the value of "N" will be "".
so I modify File/IMC/Parse.php , the patch is :
129c129
< $fold_regex = '(\n)([ |\t|=])';
---
$fold_regex = '(\n)([ |\t])';
------------------------------------------------------------------------