php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50089 quoted_printable_encode incorrect
Submitted: 2009-11-05 15:13 UTC Modified: 2013-02-18 00:34 UTC
From: susafon at seznam dot cz Assigned:
Status: No Feedback Package: Strings related
PHP Version: 5.3.0 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: susafon at seznam dot cz
New email:
PHP Version: OS:

 

 [2009-11-05 15:13 UTC] 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 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-05 15:38 UTC] 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-06 09:01 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-11-14 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-04-25 20:45 UTC] felipe@php.net
-Status: No Feedback +Status: Feedback
 [2010-04-25 20:45 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 00:01:28 2024 UTC