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

BCP20-1235 Add sanitization on setValue for CustomField.php model #24

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

MlKilderkin
Copy link
Collaborator

@MlKilderkin MlKilderkin commented Mar 31, 2022

BCP20-1235 Add sanitization on setValue for CustomField.php model

Values provided by merchants in BC admin may have extra chars which may cause the issue(wrong string length)

The example of string
The amazingly small XDv2 amplifiers are huge in audio performance, thanks to our advanced NexD™ switching technologies. These technologies allow XDv2 amplifiers to achieve efficiencies exceeding 80%, meaning far less heat and strain on your vehicle's
The problem in NexD™ word. Since it hast the extra char it will be count as 2 char and string with length 250 on BC side and will have 251 length on PHP side

Copy link

@ChrisMKindred ChrisMKindred left a comment

Choose a reason for hiding this comment

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

Looks good.

@MlKilderkin MlKilderkin merged commit 0e59298 into master Mar 31, 2022
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.

None yet

2 participants