View Single Post
  #6 (permalink)  
Old 05-19-08, 02:53 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community VIP
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 2,724
Thanks: 0
Thanked 0 Times in 0 Posts
since there's a + sign at the end of the base64 encoded string, it might cause problems in a browser, as a + sign can also be used to replace spaces. For instance, placing this url http://mysite.com/mypage?var=Hello World might end up like this http://mysite.com/mypage?var=Hello+World So whenever you grab the value of the $_GET['var'] variable, php might convert the plus sign to a space character.

To prevent this, use the functions urlencode and urldecode
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

If you want to add me on any IM, pm me first
Reply With Quote