You are here: Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue? « PHP « IT news, forums, messages
Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue?

Posted by Jochem Maas on 10/03/60 11:10

don't forget that there is also:

rawurlencode() and rawurldecode()

possible php is using these internally instead?

Pink Floyd wrote:
> OK, after a little more closer examination, it does
> appear that the 'urlencode' is being used. I did the
> encode/decode thingy. BUT, the only character that is
> being messed up (at least the ones I had) appears to
> be '+'.
>
> After a lot of trial and error, I am fairly convinced
> that PHP parses the Cookie before 'urldecoding' it and
> for some reason the '+' character seems to be treated
> special. It could be that there may be some more
> 'filtering' going on before it reaches the 'urldecode'
> step.
> Richard, thanks for being with this thread so far. I
> will see if i can produce some output.
>
>
> --- Richard Lynch <ceo@l-i-e.com> wrote:
>
>>>Greetings,
>>> I tested Richard's suggestion below, and it
>>
>>appears
>>
>>>that 'urlencode' is not the function that I want.
>>> Are there any other options? Does anyone know
>>
>>what
>>
>>>PHP uses internally to 'munge' the cookie? I
>>
>>looked at
>>
>>>the php.ini doc's and I could not find any option
>>
>>to
>>
>>>turn off whatever 'encoding' PHP uses internally.
>>
>>Hmmm.
>>
>>Okay, show us some "before" and "after" values.
>>
>>It's *GOT* to be something not unlike urldecoding if
>>it changes + to space.
>>
>>Damn! PHP's urlencode might use %20 instead of +
>>(or vice versa) so then
>>the urldecode and urlencode are not be true inverse
>>functions, for
>>space/%20/+ scenarios.
>>
>>--
>>Like Music?
>>http://l-i-e.com/artists.htm
>>
>>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация