note 114378 added to function.addslashes

From: Date: Thu, 13 Feb 2014 16:02:15 +0000
Subject: note 114378 added to function.addslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-198500@lists.php.net to get a copy of this message
@ mark at hagers dot demon dot nl : You shouldn't use str_replace() for this. Use a function like htmlentities(), which will properly encode all user input for fields. That way, it will also work if the user types &, <, >, etc. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.addslashes.php Edit -- https://master.php.net/note/edit/114378 Del: integrated -- https://master.php.net/note/delete/114378/integrated Del: useless -- https://master.php.net/note/delete/114378/useless Del: bad code -- https://master.php.net/note/delete/114378/bad+code Del: spam -- https://master.php.net/note/delete/114378/spam Del: non-english -- https://master.php.net/note/delete/114378/non-english Del: in docs -- https://master.php.net/note/delete/114378/in+docs Del: other reasons-- https://master.php.net/note/delete/114378 Reject -- https://master.php.net/note/reject/114378 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198500) next »