cvs: php-src(PHP_5_1) /ext/standard base64.c
| From: | Ilia Alshanetsky | Date: | Fri, 26 Aug 2005 03:32:35 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard base64.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33656@lists.php.net to get a copy of this message | ||
iliaa Thu Aug 25 23:32:35 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard base64.c
Log:
Fixed bug #34214 (base64_decode() does not properly ignore whitespace)
http://cvs.php.net/diff.php/php-src/ext/standard/base64.c?r1=1.43&r2=1.43.2.1&ty=u
Index: php-src/ext/standard/base64.c
diff -u php-src/ext/standard/base64.c:1.43 php-src/ext/standard/base64.c:1.43.2.1
--- php-src/ext/standard/base64.c:1.43 Wed Aug 3 10:07:56 2005
+++ php-src/ext/standard/base64.c Thu Aug 25 23:32:31 2005
@@ -15,7 +15,7 @@
| Author: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: base64.c,v 1.43 2005/08/03 14:07:56 sniper Exp $ */
+/* $Id: base64.c,v 1.43.2.1 2005/08/26 03:32:31 iliaa Exp $ */
#include <string.h>
@@ -153,15 +153,6 @@
while ((ch = *current++) != '\0' && length-- > 0) {
if (ch == base64_pad) break;
- /* When Base64 gets POSTed, all pluses are interpreted as spaces.
- This line changes them back. It's not exactly the Base64 spec,
- but it is completely compatible with it (the spec says that
- spaces are invalid). This will also save many people considerable
- headache. - Turadg Aleahmad <turadg@wise.berkeley.edu>
- */
-
- if (ch == ' ') ch = '+';
-
ch = base64_reverse_table[ch];
if (ch < 0) continue;