Re: [SMARTY] bug? security hole? undocumented magic in php?
| From: | Tom Sommer | Date: | Fri, 25 Apr 2003 21:36:24 +0000 |
| Subject: | Re: [SMARTY] bug? security hole? undocumented magic in php? | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9383@lists.php.net to get a copy of this message | ||
On 25 Apr 2003 16:55:52 -0400, Greg Stark wrote:
> And, no, I can't call stripslashes because that would remove slashes that
> addslashes didn't put there, notably bare \s in the input string.
ehh
$test = "helllo ' wee";
echo addslashes($test); # helllo \' wee
echo stripslashes($test); # helllo ' wee
call addslashes, then stripslashes on the addslashed string :)
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk