svn: /phpdoc/en/trunk/reference/mongo/ security.xml

From: Date: Tue, 22 Apr 2014 13:29:46 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ security.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12449@lists.php.net to get a copy of this message
derick Tue, 22 Apr 2014 13:29:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333406 Log: Mention that this is also true for POST (from a note by Mark Coudill). Changed paths: U phpdoc/en/trunk/reference/mongo/security.xml Modified: phpdoc/en/trunk/reference/mongo/security.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/security.xml 2014-04-22 12:12:44 UTC (rev 333405) +++ phpdoc/en/trunk/reference/mongo/security.xml 2014-04-22 13:29:46 UTC (rev 333406) @@ -7,9 +7,10 @@ <section> <title>Request Injection Attacks</title> <para> - If you are passing <literal>$_GET</literal> parameters to your queries, make - sure that they are cast to strings first. Users can insert associative - arrays in GET requests, which could then become unwanted $-queries. + If you are passing <literal>$_GET</literal> (or <literal>$_POST</literal>) + parameters to your queries, make sure that they are cast to strings first. + Users can insert associative arrays in GET and POST requests, which could + then become unwanted $-queries. </para> <para> @@ -28,9 +29,9 @@ </para> <para> - This is a fairly easy attack to defend against: make sure $_GET's parameters - are the type you expect before you send them to the database (cast them to - strings, in this case). + This is a fairly easy attack to defend against: make sure $_GET and $_POST + parameters are the type you expect before you send them to the database + (cast them to strings, in this case). </para> <para>

« previous php.doc.cvs (#12449) next »