note 26582 added to function.stripcslashes

From: Date: Tue, 05 Nov 2002 21:57:12 +0000
Subject: note 26582 added to function.stripcslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-39009@lists.php.net to get a copy of this message
if you allow users to submit fields with apostrophy's inside, what you should do is pass that string into "stripcslashes()" to remove any slashes that may be automatically added by whatever that is causing it. As usual, you should verify this for yourself by creating a form and output the raw data in plain text format to make sure you have it right. The reason why MySQL does seem to ignore this problem is because it takes the "\'" and treat it as "'". -- http://www.php.net/manual/en/function.stripcslashes.php http://master.php.net/manage/user-notes.php?action=edit+26582 http://master.php.net/manage/user-notes.php?action=delete+26582 http://master.php.net/manage/user-notes.php?action=reject+26582

« previous php.notes (#39009) next »