[thelist] FW: Really annoying PHP escape problem

sbeam sbeam at syxyz.net
Thu Apr 8 13:10:43 CDT 2004


On Thursday 08 April 2004 01:52 pm, thus spaketh Rob Smith:
> Firstly the code is sent to a page via post with urlencode(). The
> first ' is now \'. When the code is spit back out to the screen to
> preview both characters are getting escaped:
>
> \\ \' hense \\\'
>

urlencode() has nothing to do with it. look into your magic_quotes_gpc 
setting in php.ini. Turn it off and restart your server.

-- 

# S Beam - Web App Dev Server
# http://www.onsetcorps.net/


More information about the thelist mailing list