From: dev at worldlinked dot net Operating system: all PHP version: 5.0.4 PHP Bug Type: *Mail Related Bug description: base64_decode does not properly ignore whitespace
Description: ------------ RFC 2045 says: "All line breaks or other characters not found in Table 1 must be ignored by decoding software." However if a caracter such as a space is in the encoded data (which some encoders such as newegg.com do) then the base64_decode does not work. Reproduce code: --------------- http://www.worldlinked.net/blog/files/testbase64.php or http://www.worldlinked.net/blog/files/testbase64.phps Expected result: ---------------- Hello, There seems to be a problem with php's base64_decode() function. Whitespace needs to be trimmed from the email before it will properly decode. Actual result: -------------- Hello, There seems to be a problem with php's base64_decode() function. Whitespace needs to be trimmed from the emù ¥°½É¥ÐÝ¥±°ÁɽÁɱ佸 -- Edit bug report at http://bugs.php.net/?id=34214&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34214&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34214&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34214&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34214&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34214&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34214&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34214&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34214&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34214&r=support Expected behavior: http://bugs.php.net/fix.php?id=34214&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34214&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34214&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34214&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34214&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34214&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34214&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34214&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34214&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34214&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34214&r=mysqlcfg
