Reply to Re: urlencode(addslashes(chr(0)))

Your name:

Reply:


Posted by Gordon Burditt on 10/24/05 02:35

>Any ideas as to why urlencode(addslashes(chr(0))) returns '%5C0'? It

addslashes(chr(0)) should return '\0'.

>seems like it should return '%00' since that's what urlencode(chr(0))
>returns. If not that, I could also see it returning '%5C%00' since
>that's what urlencode('\\').urlencode(chr(0)) and
>urlencode('\\'.chr(0)) return. '%5C0', however, confuses me. Even
>urlencode(chr(0x5C0)) doesn't return '%5C0' - it returns '%C0'.

urlencode '\0' and the backslash turns into %5C, and the 0 is unchanged.
Therefore, %5C0.

Gordon L. Burditt

[Back to original 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

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