note 31105 added to function.addslashes
| From: | phil at internetprojectmanagers dot com | Date: | Wed, 09 Apr 2003 21:47:56 +0000 |
| Subject: | note 31105 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46430@lists.php.net to get a copy of this message | ||
re: encryption, addslashes and mysql
Note that mcrypt encryption may add in an apostrophe from the ascii table which cannot be protected
by addslashes. It may not even be on your keyboard.
Because encryption strings are random, you may not discover it unless you test (or stumble?) on the
correct sequence which inserts an apostrophe in the encrypted string.
This means that testing is even more important where encryption is concerned. If I create a solution
I'll post it here.
Phil
--
http://www.php.net/manual/en/function.addslashes.php
http://master.php.net/manage/user-notes.php?action=edit+31105
http://master.php.net/manage/user-notes.php?action=delete+31105
http://master.php.net/manage/user-notes.php?action=reject+31105