mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
typo, example-corr.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@71030 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9d5179e5c3
commit
e9af69cae5
2 changed files with 6 additions and 6 deletions
|
@ -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 @@ if (!ereg('^[^./][^/]*$', $username))
|
|||
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 @@ $result = mssql_query($query);
|
|||
<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
|
||||
|
|
|
@ -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 @@ if (!ereg('^[^./][^/]*$', $username))
|
|||
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 @@ $result = mssql_query($query);
|
|||
<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
|
||||
|
|
Loading…
Reference in a new issue