Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape and sanitize untrusted data [Warning] #141

Open
grappler opened this issue Apr 18, 2016 · 0 comments
Open

Escape and sanitize untrusted data [Warning] #141

grappler opened this issue Apr 18, 2016 · 0 comments
Labels
sniffer Is already in the standards or theme sniffer

Comments

@grappler
Copy link
Member

There are a few checks that we can run that could help catch a few of the main issues.

  1. Sanitize widget settings in the update() function in the widget class e.g. $instance['example'] = $new_instance['example'];
  2. Check if $_POST, $_GET $_REQUEST are wrapped in a bracket e.g. isset( $_POST['example] ) or esc_html( $_GET['example'] )

I am sure there are a few more that will come to mind.

@carolinan carolinan added the sniffer Is already in the standards or theme sniffer label Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sniffer Is already in the standards or theme sniffer
Projects
None yet
Development

No branches or pull requests

2 participants