ID: 19275
Updated by: [email protected]
Reported By: [email protected]
Summary: unfold lines of quote printable text parsed wrong
values!
Status: Analyzed
Type: Bug
Package: File_IMC
Operating System: Ubuntu linux 11.10
Package Version: 0.4.3
PHP Version: 5.3.10
-Assigned To:
+Assigned To: till
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: till
Can you give me a unified diff or (even better) a pull request:
http://github.com/pear/File_IMC
Previous Comments:
------------------------------------------------------------------------
[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])';
------------------------------------------------------------------------