note 26581 deleted from function.crypt by maxim

From: Date: Wed, 06 Nov 2002 13:33:44 +0000
Subject: note 26581 deleted from function.crypt by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39040@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 "'".

« previous php.notes (#39040) next »