NYCPHP Meetup

NYPHP.org

[nycphp-talk] Converting hex?

Flavio daCosta nyphp at n0p.net
Wed Sep 6 11:00:01 EDT 2006


On 09/06/2006 10:34 AM, Jeff Loiselle wrote:
> $response = str_replace('\x', '%', $response);
> $response = urldecode($response);

Note: If one relies on (icky) "magic_quotes_gpc = On" (who does this
anymore, right?) you could get '\x27' in your request that, after the
above two lines, would be an unescaped '

flav



More information about the talk mailing list