note 88375 added to function.mysql-real-escape-string

From: Date: Wed, 21 Jan 2009 15:33:45 +0000
Subject: note 88375 added to function.mysql-real-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-149601@lists.php.net to get a copy of this message
why not just simply only take everything up to the first semi-colon as your input and ignore everything else? $str=$_post['searchstr']; $ssql=substr($str, 0, strpos(";", $str)); no following extra sql?! strings are so powerful! :D ---- Server IP: 87.124.35.190 Probable Submitter: 86.18.72.96 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php Edit -- https://master.php.net/note/edit/88375 Del: integrated -- https://master.php.net/note/delete/88375/integrated Del: useless -- https://master.php.net/note/delete/88375/useless Del: bad code -- https://master.php.net/note/delete/88375/bad+code Del: spam -- https://master.php.net/note/delete/88375/spam Del: non-english -- https://master.php.net/note/delete/88375/non-english Del: in docs -- https://master.php.net/note/delete/88375/in+docs Del: other reasons-- https://master.php.net/note/delete/88375 Reject -- https://master.php.net/note/reject/88375 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149601) next »