Bug #19275 [Opn->Ana]: unfold lines of quote printable text parsed wrong values!

From: Date: Wed, 15 Feb 2012 12:11:01 +0000
Subject: Bug #19275 [Opn->Ana]: unfold lines of quote printable text parsed wrong values!
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8272@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19275&edit=1 ID: 19275 Updated by: daniel.oconnor@gmail.com Reported By: chunshengster at gmail dot com Summary: unfold lines of quote printable text parsed wrong values! -Status: Open +Status: Analyzed Type: Bug Package: File_IMC Operating System: Ubuntu linux 11.10 Package Version: 0.4.3 PHP Version: 5.3.10 Roadmap Versions: New Comment: -Status: Open +Status: Analyzed Thanks for the patch Previous Comments: ------------------------------------------------------------------------ [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])'; ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19275&edit=1

« previous php.pear.bugs (#8272) next »