|
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
Navigation:
[Reply to this message]
|