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

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

Search Discussions

  • Till at Aug 15, 2012 at 10:44 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19275&edit=1

    ID: 19275
    Updated by: till@php.net
    Reported By: chunshengster@gmail.com
    Summary: unfold lines of quote printable text parsed wrong
    values!
    -Status: Closed
    +Status: Feedback
    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: Closed
    +Status: Feedback
    Sorry – I closed this by accident.

    I am not sure if your patch makes sense. I see the same regex commented
    out from
    before.

    Would you mind sending me a Pull Request which includes a test case to
    demo this
    behavior?


    Previous Comments:
    ------------------------------------------------------------------------

    [2012-08-15 12:48:32] till

    -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.

    ------------------------------------------------------------------------

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 15, '12 at 10:42a
activeAug 15, '12 at 10:44a
posts2
users1
websitepear.php.net

1 user in discussion

Till: 2 posts

People

Translate

site design / logo © 2022 Grokbase