#50089 [Opn->Fbk]: quoted_printable_encode incorrect

From: Date: Fri, 06 Nov 2009 09:01:30 +0000
Subject: #50089 [Opn->Fbk]: quoted_printable_encode incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144309@lists.php.net to get a copy of this message
ID: 50089 Updated by: jani@php.net Reported By: susafon at seznam dot cz -Status: Open +Status: Feedback -Bug Type: *Encryption and hash functions +Bug Type: Strings related Operating System: Windows XP PHP Version: 5.3.0 New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-11-05 15:38:03] susafon at seznam dot cz Proper location of the error is at the end of the string reported in Actual result: "=o=20katal=C3=B3gu!?=". The first sign "=" of this ending is not supposed to be there ------------------------------------------------------------------------ [2009-11-05 15:13:36] susafon at seznam dot cz Description: ------------ The function quoted_printable_encode returns string incorrectly. Input string is plain text. The function generate errors if the length of the string is longer. Reproduce code: --------------- quoted_printable_encode($_POST['not_encoded']) Expected result: ---------------- original string: "Objavte novinky a vianočné tipy z nášho najnovšieho katalógu!" returned string: "=?utf-8?Q?Objavte=20novinky=20a=20viano=C4=8Dn=C3=A9=20tipy=20z=20n=C3=A1=C5=A1ho=20najnov=C5=A1ieho=20katal=C3=B3gu!?=" Actual result: -------------- original string: "Objavte novinky a vianočné tipy z nášho najnovšieho katalógu!" returned string: "=?utf-8?Q?Objavte=20novinky=20a=20viano=C4=8Dn=C3=A9=20tipy=20z=20n=C3=A1=C5=A1ho=20najnov=C5=A1ieh=o=20katal=C3=B3gu!?=" ^ | sign "=" does not ____| suppose be there ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50089&edit=1

« previous php.bugs (#144309) next »