RE: [PHP] magic_quotes_gpc and \
| From: | Johnson, Kirk | Date: | Fri, 10 Oct 2003 14:11:57 +0000 |
| Subject: | RE: [PHP] magic_quotes_gpc and \ | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165745@lists.php.net to get a copy of this message | ||
> If I have a form that POSTS a textarea that contains PHP
> code. Say some
> code that contains legitimate escapes \ like:
>
> echo "<a href=\"http://somewhere.com\"–ÁÒÁö
> ÏÁŸÔy¿—ÚÚ>Click</a>";
>
> When the data is posted and received in the destination
> script, additional
> escapes \ are added. So how do I get to the original code above?
> strip_slashes will strip all slashes, even the original ones that are
> supposed to be there.
How about doing an ereg_replace on '\\' to '\'?
Kirk