FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19275&edit=1

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])';
------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 10, '12 at 3:34p
activeAug 10, '12 at 3:34p
posts1
users1
websitepear.php.net

1 user in discussion

Till: 1 post

People

Translate

site design / logo © 2023 Grokbase