Changes between Version 8 and Version 9 of CodingStyle


Ignore:
Timestamp:
Aug 14, 2008, 2:22:39 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingStyle

    v8 v9  
    131131== PHP specific ==
    132132
     133=== HTML ===
     134
     135It's OK to output HTML rather than XHTML.
     136I have yet to hear a convincing reason for the latter,
     137and it's more characters.
     138
    133139=== Getting POST and GET data ===
    134 Remember that hackers can pass arbitrary values in POST and GET, and they can use this to do SQL injections and other exploits.
    135  * Do not access `$_POST` or `$_GET` directly.
    136  * Use `get_int()`, `get_str()`, `post_int()` and `post_str()` (from `util.inc`) to get POST and GET data.
     140
     141Do not access `$_POST` or `$_GET` directly.
     142Use `get_int()`, `get_str()`, `post_int()` and `post_str()` (from `util.inc`) to get POST and GET data.
     143These undo the effects of PHP magic quotes.
    137144
    138145=== Database access ===