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

Fix (ckbox): use safer way for stringifying numbers #16041

Conversation

maxmartynov
Copy link

Suggested merge commit message (convention)

Fix (ckbox): use safer way for stringifying numbers. Closes #16040


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@bobby5892
Copy link

This pull request does need tested and merged in.

The risk of not having this is that when ckeditor is used behind minifcation (cloudflare etc) this causes
50 .toString() <--- valid
to become
50.toString() <--- invalid JS

This caused a production outage for us to track down.

@Mati365
Copy link
Member

Mati365 commented Jul 15, 2024

@maxmartynov I picked your modification to new PR and added regression test to our test suite. I'm closing this particular PR.

@Mati365 Mati365 closed this Jul 15, 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.

SyntaxError: Invalid or unexpected token 50.toString()
3 participants