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

use esc_html for API response output instead of FILTER_SANITIZE_STRING #123

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

stklcode
Copy link
Contributor

@stklcode stklcode commented Mar 27, 2023

FILTER_SANITIZE_STRING is deprecated as of PHP 8.1 and raises a warning when used. This only occurs in case of error responses from the API here.

For all other parts of the mail body we use some kind of HTML escaping, so let's migrate the sanitization to esc_html() here, too.

@stklcode stklcode added the bug label Mar 27, 2023
@stklcode stklcode added this to the 1.4.4 milestone Mar 27, 2023
Copy link
Member

@pfefferle pfefferle left a comment

Choose a reason for hiding this comment

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

LGTM

@stklcode stklcode merged commit c0e9c43 into develop Mar 28, 2023
@stklcode stklcode deleted the fix/sanitize-response-output branch March 28, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants