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

Enhancement: better input validation #7668

Merged

Conversation

glaubersilva
Copy link
Contributor

@glaubersilva glaubersilva commented Jan 6, 2025

Resolves GIVE-2073

Description

This PR refactors the containsSerializedDataRegex() method to ensure it will work with strings containing special characters and encoded strings. It also adds a new sample string to the unit tests to ensure everything is working as expected.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@glaubersilva glaubersilva self-assigned this Jan 6, 2025
@glaubersilva glaubersilva force-pushed the enhancement/better-input-validation-GIVE-2073 branch from f00457c to 999058d Compare January 6, 2025 21:35
@glaubersilva glaubersilva changed the base branch from develop to master January 6, 2025 21:36
@glaubersilva glaubersilva marked this pull request as ready for review January 7, 2025 01:21
tests/Unit/Helpers/UtilsTest.php Outdated Show resolved Hide resolved
src/Helpers/Utils.php Show resolved Hide resolved
src/Helpers/Utils.php Outdated Show resolved Hide resolved
@glaubersilva
Copy link
Contributor Author

@jonwaldstein This is ready for re-review.

Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

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

Great job!

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

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

Passed QA tests.

@jonwaldstein jonwaldstein changed the base branch from master to release/3.19.4 January 7, 2025 17:46
@jonwaldstein jonwaldstein merged commit d2bdcde into release/3.19.4 Jan 7, 2025
20 checks passed
@jonwaldstein jonwaldstein deleted the enhancement/better-input-validation-GIVE-2073 branch January 7, 2025 17:47
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.

3 participants