Skip to content

Fix input sanitization deprecation warnings - #34

Merged
IgorCode merged 1 commit into
IgorCode:mainfrom
superhuit-agency:chore/fix-deprecation
Jun 1, 2026
Merged

Fix input sanitization deprecation warnings#34
IgorCode merged 1 commit into
IgorCode:mainfrom
superhuit-agency:chore/fix-deprecation

Conversation

@kuuak

@kuuak kuuak commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the way taxonomy input is sanitized in the class-i-order-terms.php file to fix deprecation warnings, from php 8.1. The main change is switching from FILTER_SANITIZE_STRING to FILTER_SANITIZE_SPECIAL_CHARS when retrieving the taxonomy parameter in both GET and POST requests.

Security improvements:

  • Updated the sanitization filter for the taxonomy parameter from FILTER_SANITIZE_STRING to FILTER_SANITIZE_SPECIAL_CHARS in the admin_assets() method to better handle special characters and enhance security.
  • Made the same update for the taxonomy parameter in the ajax_order_terms() method for POST requests.

@IgorCode
IgorCode merged commit c399d38 into IgorCode:main Jun 1, 2026
5 of 6 checks passed
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