cvs: phpdoc /en/chapters security.xml

From: Date: Wed, 27 Feb 2002 07:35:52 +0000
Subject: cvs: phpdoc /en/chapters security.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969342624@lists.php.net to get a copy of this message
tom Wed Feb 27 02:35:52 2002 EDT Modified files: /phpdoc/en/chapters security.xml Log: typo, example-corr. Index: phpdoc/en/chapters/security.xml diff -u phpdoc/en/chapters/security.xml:1.43 phpdoc/en/chapters/security.xml:1.44 --- phpdoc/en/chapters/security.xml:1.43 Mon Feb 4 06:51:22 2002 +++ phpdoc/en/chapters/security.xml Wed Feb 27 02:35:51 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.43 $ --> +<!-- $Revision: 1.44 $ --> <chapter id="security"> <title>Security</title> @@ -508,7 +508,7 @@ access and manipulate databases within PHP scripts. </simpara> <simpara> - Keep in my mind this simple rule: defence in depth. In the more place you + Keep in mind this simple rule: defence in depth. In the more place you take the more action to increase the protection of your database, the less probability of that an attacker succeeds, and exposes or abuse any stored secret information. Good design of the database schema and the application @@ -852,7 +852,7 @@ <title>A more secure way to compose a query for paging</title> <programlisting role="php"> <![CDATA[ -settype($order, 'integer'); +settype($offset, 'integer'); $query = "SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;"; // please note %d in the format string, using %s would be meaningless

« previous php.doc (#969342624) next »