PHP 4.0 Bug #7138 Updated: quoted_printable_decode doesn't handle soft line breaks
| From: | kir@php.net | Date: | Mon, 20 Nov 2000 10:12:25 +0000 |
| Subject: | PHP 4.0 Bug #7138 Updated: quoted_printable_decode doesn't handle soft line breaks | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38558@lists.php.net to get a copy of this message | ||
ID: 7138
Updated by: kir
Reported By: burton@mailshell.com
Status: Closed
Bug Type: Strings related
Assigned To:
Comments:
Check the latest version on http://snaps.php.net
or wait until 4.0.4.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-17 03:41:10] kir@php.net
Duplicate of #5321.
---------------------------------------------------------------------------
[2000-10-18 13:39:33] burton@mailshell.com
--- php-current/functions/quot_print.c.orig Sat Jan 1 07:31:16 2000
+++ php-current/functions/quot_print.c Mon Sep 18 17:00:22 2000
@@ -93,10 +93,9 @@
str[j++] = (_php3_hex2int((int)str[i+1]) << 4 )
+ _php3_hex2int((int)str[i+2]);
i += 3;
- }
- else if ( str[i] == 13 )
+ } else if ( (str[i] == '=') && str[i+1] && (str[i+1] == 10) )
{
- i++;
+ i += 2;
}
else
{
---------------------------------------------------------------------------
[2000-10-11 12:31:49] burton@mailshell.com
quoted_printable_decode does not appear to handle soft line
breaks as defined in RFC 1521.
That is, lines ending with an equal symbol followed by
carriage return and line feed should be replaced by the
empty string
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7138