mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
bit o' grammar/spelling
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@127358 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b70ce1223a
commit
d5d7525285
2 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.53 $ -->
|
||||
<!-- $Revision: 1.54 $ -->
|
||||
<chapter id="security">
|
||||
<title>Security</title>
|
||||
|
||||
|
@ -1035,9 +1035,9 @@ if ($good_login == 1) { // If above test fails, not initialized or checked befor
|
|||
<para>
|
||||
When on, register_globals will inject (poison) your scripts will all
|
||||
sorts of variables, like request variables from html forms. This
|
||||
coupled with the fact that PHP doesn't require variable initializion
|
||||
coupled with the fact that PHP doesn't require variable initialization
|
||||
means writing insecure code is that much easier. It was a difficult
|
||||
decision but the PHP community decided to disable this directive by
|
||||
decision, but the PHP community decided to disable this directive by
|
||||
default. When on, people use variables yet really don't know for sure
|
||||
where they come from and can only assume. Internal variables that are
|
||||
defined in the script itself get mixed up with request data sent by
|
||||
|
@ -1069,7 +1069,7 @@ if ($authorized) {
|
|||
<para>
|
||||
When register_globals = on, our logic above may be compromised. When
|
||||
off, <varname>$authorized</varname> can't be set via request so it'll
|
||||
be okay although it really is good general programming practice to
|
||||
be fine, although it really is generally a good programming practice to
|
||||
initialize variables first. For example, in our example above we might
|
||||
have first done <literal>$authorized = false</literal>. Doing this
|
||||
first means our above code would work with register_globals on or off as
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.53 $ -->
|
||||
<!-- $Revision: 1.54 $ -->
|
||||
<chapter id="security">
|
||||
<title>Security</title>
|
||||
|
||||
|
@ -1035,9 +1035,9 @@ if ($good_login == 1) { // If above test fails, not initialized or checked befor
|
|||
<para>
|
||||
When on, register_globals will inject (poison) your scripts will all
|
||||
sorts of variables, like request variables from html forms. This
|
||||
coupled with the fact that PHP doesn't require variable initializion
|
||||
coupled with the fact that PHP doesn't require variable initialization
|
||||
means writing insecure code is that much easier. It was a difficult
|
||||
decision but the PHP community decided to disable this directive by
|
||||
decision, but the PHP community decided to disable this directive by
|
||||
default. When on, people use variables yet really don't know for sure
|
||||
where they come from and can only assume. Internal variables that are
|
||||
defined in the script itself get mixed up with request data sent by
|
||||
|
@ -1069,7 +1069,7 @@ if ($authorized) {
|
|||
<para>
|
||||
When register_globals = on, our logic above may be compromised. When
|
||||
off, <varname>$authorized</varname> can't be set via request so it'll
|
||||
be okay although it really is good general programming practice to
|
||||
be fine, although it really is generally a good programming practice to
|
||||
initialize variables first. For example, in our example above we might
|
||||
have first done <literal>$authorized = false</literal>. Doing this
|
||||
first means our above code would work with register_globals on or off as
|
||||
|
|
Loading…
Reference in a new issue