ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#50089 [NEW]: quoted_printable_encode incorrect
by Susafon At Seznam Dot Cz other posts by this author
Nov 5 2009 7:14AM messages near this date
#50090 [Opn->Csd]: Typo in IteratorIterator constructor | #50089 [Opn->Fbk]: quoted_printable_encode incorrect
From:             susafon at seznam dot cz
Operating system: Windows XP
PHP version:      5.3.0
PHP Bug Type:     *Encryption and hash functions
Bug description:  quoted_printable_encode incorrect

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 bug report at http://bugs.php.net/?id=50089&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=50089&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=50089&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=50089&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=50089&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50089&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=50089&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=50089&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=50089&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=50089&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=50089&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=50089&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=50089&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=50089&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=50089&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50089&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50089&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=50089&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=50089&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=50089&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=50089&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=50089&r=mysqlcfg
Thread:
Susafon At Seznam Dot Cz
jani
Susafon At Seznam Dot Cz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved