Base64 encoding in PHP not working for '&' and '#' ?

Posted by Angad on Stack Overflow See other posts from Stack Overflow or by Angad
Published on 2010-04-28T08:48:49Z Indexed on 2010/04/28 8:53 UTC
Read the original article Hit count: 227

Filed under:
|

My knowledge about base64 is pretty limited. I am using it as an alternative to string escaping in a content management system, for I had been warned about how weaknesses have been found in mysql_real_escape_string(); and quite sheepishly so, as I am aware of how it buffs text size up.

PHP seems to truncate everything after an instance of # or & in the string; please help me out of this one.

Also, comment on whether using base64 to maintain the 'trueness' of post content in the CMS is just plain retarded, or a wise move.

Thanks for your time :)

© Stack Overflow or respective owner

Related posts about php

Related posts about base64