note 99649 added to security.magicquotes.whynot

From: Date: Sat, 28 Aug 2010 14:38:05 +0000
Subject: note 99649 added to security.magicquotes.whynot
Groups: php.notes 
Request: Send a blank email to php-notes+get-172135@lists.php.net to get a copy of this message
Instead of addslashes() you almost certainly want to use the DBMS-specific escape string, something like mysql_real_escape_string(). See the note on the addslashes() page here: http://www.php.net/manual/en/function.addslashes.php ---- Server IP: 69.147.83.197 Probable Submitter: 98.169.58.122 ---- Manual Page -- http://www.php.net/manual/en/security.magicquotes.whynot.php Edit -- https://master.php.net/note/edit/99649 Del: integrated -- https://master.php.net/note/delete/99649/integrated Del: useless -- https://master.php.net/note/delete/99649/useless Del: bad code -- https://master.php.net/note/delete/99649/bad+code Del: spam -- https://master.php.net/note/delete/99649/spam Del: non-english -- https://master.php.net/note/delete/99649/non-english Del: in docs -- https://master.php.net/note/delete/99649/in+docs Del: other reasons-- https://master.php.net/note/delete/99649 Reject -- https://master.php.net/note/reject/99649 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172135) next »