note 104924 added to function.base64-decode
| From: | parkan at osu1 dot php dot net | Date: | Fri, 15 Jul 2011 21:27:55 +0000 |
| Subject: | note 104924 added to function.base64-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181583@lists.php.net to get a copy of this message | ||
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)
----
Server IP: 208.69.120.55
Probable Submitter: 72.229.115.108
----
Manual Page -- http://www.php.net/manual/en/function.base64-decode.php
Edit -- https://master.php.net/note/edit/104924
Del: integrated -- https://master.php.net/note/delete/104924/integrated
Del: useless -- https://master.php.net/note/delete/104924/useless
Del: bad code -- https://master.php.net/note/delete/104924/bad+code
Del: spam -- https://master.php.net/note/delete/104924/spam
Del: non-english -- https://master.php.net/note/delete/104924/non-english
Del: in docs -- https://master.php.net/note/delete/104924/in+docs
Del: other reasons-- https://master.php.net/note/delete/104924
Reject -- https://master.php.net/note/reject/104924
Search -- https://master.php.net/manage/user-notes.php