note 104924 deleted from function.base64-decode by danbrown

From: Date: Fri, 15 Jul 2011 21:31:48 +0000
Subject: note 104924 deleted from function.base64-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181584@lists.php.net to get a copy of this message
Note Submitter: parkan ---- Note that PHP uses the RFC 2045 base64 standard that allows whitespace and variable length, so if your rewrites eat '+' characters, you end up with complete garbage due to the space being compacted: php > print base64_decode("aHR0cDovL2ZlZWRwcm94eS5nb29nbGUuY29tL35yL3RoYXRkdWRlamVmZi9 NS9tUVpzZzZINDVjSS9NYW4tQWxpdmUtVGhlLUdsaXRjaC1Nb2ItQWxidW0tTWFzaC1VcC5tcDM=", true); X?K?X[?P[]?KU]??oxy.google.com/~r/thatdudejeff/MK?TV??͒ S[؋P[?[KSX\? U\ ?\ this isn't fixed by enabling strict mode (which should really just switch the whole thing into RFC 3548 standards)

« previous php.notes (#181584) next »