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

Secure user data #15

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

2ndkauboy
Copy link
Contributor

The current version allows saving unsafe data, like HTML containing a <script> tag.

This patch will apply the pre_user_description and pre_user_display_name filter, which include the sanitize_text_field and wp_filter_kses function calls, that would strip insecure HTML data, while still allowing HTML like images, links and similar.

The current version allows saving unsafe data, like HTML containing
a `<script>` tag.

This patch will apply the `pre_user_description` and
`pre_user_display_name` filter, which include the `sanitize_text_field`
and `wp_filter_kses` function calls, that would strip insecure HTML
data, while still allowing HTML like images, links and similar.
@2ndkauboy 2ndkauboy force-pushed the fix/secure-user-data branch from 79b372b to 801fca1 Compare January 22, 2024 14:04
Copy link
Member

@webzunft webzunft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works

@webzunft webzunft merged commit 3f181f1 into webgilde:master Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants