Discussions


Chess, Go & Poker Server









                                          
User   Password   remember   (register)  ?

Bug PHP : base64_decode

Poker, chess & Go world championship

Back to programmation.


thibault    (2009-10-08)

thibault

 
Bug PHP : base64_decode


Bonjour,

J'ai constaté un bug avec certains caractères dans la fonction PHP base64_decode, et j'ai fini par trouver cette méthode pour l'éviter, quelqu'un sait s'il y a encore plus rapide que ça ou s'il y a une autre fonction pouvant faire grosso modo la même chose que base64_encode() et base64_decode() en évitant ce bug facheux ?

<?

$result = strtr(base64_encode($source, '+/', '-_');

$source = base64_decode(strtr($result, '-_', '+/'));

?>


Merci à tous.



(more options below)

ficgs
Suggestions


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 BUG + HACK standard install WARNING - Blog "image.php" identical duplicates created in blog|cms|sapphire /images/ » Blog Module » SilverS...
silverstripe > blog module forum/show/259876
  1. Maybe the standard Silverstripe installation should include this
  2. - a timeline of when you first installed the site, whether there was
 CubeCart Forums - Usage Warning
forums.cubecart > index.php?showtopic=37772

The post may still be visible to moderators in this...
Anyone knows how to get rid of theese characters? This is how...

 #35649 [NEW]: base64_decode bug :: ASPN Mail Archive :: php-dev
aspn.activestate > ASPN/Mail/Message/php dev/2937060

 #39412 [NEW]: base64_decode does not return FALSE on failure - PHP Bugs
justskins > forums/39412 new base64 decode does not return false on failure 3449

 Changelog 1.8.x - ClaroDevel
wiki.claroline > index.php/Changelog 1.8.x

 PHP: base64_decode - Manual
algorytmy > doc/php/function.base64 decode.php

 base64 encoding / JS and PHP [Archive] - CodingForums.com
codingforums > archive/index.php/t 149033

 Joomla! • Information
forum.joomla > viewtopic.php?f=127&t=218289

 All Your SMF Forums Have Been Hacked. Have a Nice Day. | DeveloperSide.NET Blog
devside > blog/smf exploit like phpbb hack

Ubuntu and Dell, a Mismatch Made in a Place Called Hell...
We do not want to execute any PHP code that is an...

 unexpected $end in include/utils/mvc_utils.php(48) : eval()'d code on line 1 - SugarCRM Forums
sugarcrm > forums/showthread.php?t=44362&page=2

Proble step 8 Fatal error: require_once(): Failed opening required...
I would simply rename your sugar directory to something...
It works - but on all pages I get right on top : Parse error:...

 base64_decodePHP 手册后退前进base64_decode (PHP 3, PHP 4, PHP 5)base64_decode -- 对使用 MIME base64 编码的数据进行解码...
bbs.php > php/function.base64 decode

I used to do uudecode as a C module, but I've discovered a really...
Heading : Your customizable encode and decode...



Response  
  Smilies

Guest name   (optional)       Register for more options.



Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
  There's no trackback at the moment.











 

FICGS message




Discussions



 


Photo blog selected : lol

lol - August 29, 2012   lol - August 28, 2012   lol - August 27, 2012  
A new picture tomorrow morning, around 10 a.m.



 


Pagerank       Copy this code to display your site's Pagerank




Write upside down to your friends!   In your blog, anywhere...
(works with MySpace, Twitter, Facebook, Youtube, MSN, Hi5, Bebo, Yahoo...)






Tip of the day :

Promote your website & protect your Uptobox, Mega or Mediafire links !

Here is the simplest tool : Protect your links




FICGS is also a Free Internet Correspondence Games Server.

Here you can play Chess, Go & Poker Texas Holdem online for free in rated class tournaments and a unique world championship.

Free Internet Chess & Go Server


Feel free to link to this page and to FICGS chess server :