You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Templates often just print out what's inside a variable.
This is the point where injection of bad code can be done.
WordPress has build esc_* for that which we should use in templates.
How to assert this? So that further commits don't bring in this problem anymore.
It is allowed inside algorithms except templates ("HTML").
Maybe we need a template system or a specific folder where all templates live in.
Find all __()/_*() and replace by esc_html or esc_attr.
Find all echo/print and replace by esc_html or esc_attr.
The text was updated successfully, but these errors were encountered:
Templates often just print out what's inside a variable.
This is the point where injection of bad code can be done.
WordPress has build
esc_*
for that which we should use in templates.__()
/_*()
and replace byesc_html
oresc_attr
.echo
/print
and replace byesc_html
oresc_attr
.The text was updated successfully, but these errors were encountered: