3,035
edits
No edit summary |
|||
| Line 129: | Line 129: | ||
==== General Input Filtering Guidelines ==== | ==== General Input Filtering Guidelines ==== | ||
* | * Filter all input properly. | ||
* After filtering, store things in arrays that make sense: | |||
** $sql - array of SQL-safe variables. | ** $sql - array of SQL-safe variables. | ||
** $clean - array of raw but trusted variables. | ** $clean - array of raw but trusted variables. | ||
* Do not escape these for HTML output; that is handled by Smarty's |escape function, and does not need to happen in your PHP scripts. | * Do not escape these for HTML output; that is handled by Smarty's |escape function, and does not need to happen in your PHP scripts. | ||
edits