iliaa           Thu Aug 25 23:32:53 2005 EDT

  Modified files:              
    /php-src/ext/standard       base64.c 
  Log:
  MFH: 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.44&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.44
--- 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:53 2005
@@ -15,7 +15,7 @@
    | Author: Jim Winstead <[EMAIL PROTECTED]>                                  
|
    +----------------------------------------------------------------------+
  */
-/* $Id: base64.c,v 1.43 2005/08/03 14:07:56 sniper Exp $ */
+/* $Id: base64.c,v 1.44 2005/08/26 03:32:53 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 <[EMAIL PROTECTED]>
-           */
-
-               if (ch == ' ') ch = '+'; 
-
                ch = base64_reverse_table[ch];
                if (ch < 0) continue;
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to