note 7193 deleted from AddSlashes by philip
| From: | philip@php.net | Date: | Mon, 27 Aug 2001 12:55:24 +0000 |
| Subject: | note 7193 deleted from AddSlashes by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17203@lists.php.net to get a copy of this message | ||
Php doesn't strip the slashes when info comes out of the database. The difference here is that
php4 automatically adds slashes to incomming variables (from a post/get) and php3 didn't. So
if you're adding slashes manually, suddenly you have double. Either drop your second
addslashes() or add a stripslashes to the beginning to all the variables that come in.