26
edits
Maotzetung (talk | contribs) (→Don't) |
Maotzetung (talk | contribs) m (→Don't) |
||
Line 42: | Line 42: | ||
* Use variables from outside PHP (GET, POST, COOKIE...) in MySQL queries without cleaning them. | * Use variables from outside PHP (GET, POST, COOKIE...) in MySQL queries without cleaning them. | ||
* "Clean" above variables in place: '''$_GET['foo']=db_escape($_GET['foo'])''' is ''bad''. '''$foo_dbescaped=db_escape($_GET['foo'])''' is OK. | * "Clean" above variables in place: '''$_GET['foo']=db_escape($_GET['foo'])''' is ''bad''. '''$foo_dbescaped=db_escape($_GET['foo'])''' is OK. | ||
* Build URLs including Session ID (''SID should be "automagically" added by PHP | * Build URLs including Session ID (''SID should be "automagically" added by PHP if we're using a no-cookie configuration''). | ||
* Use inline styles. Ever. | * Use inline styles. Ever. | ||
* Duplicate DOM IDs. | * Duplicate DOM IDs. |
edits