http://markjaquith.wordpress.com/2009/09/21/php-server-vars-not-safe-in-forms-or-links/
Common example:
< form action="
|
Another example:
< a href="
|
Here are my two rules regarding
$_SERVER['PHP_SELF']
or $_SERVER['REQUEST_URI']
in forms:- Do not use them
- If you use one of them, escape it with
esc_url()
No comments:
Post a Comment