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 code scanning alert no. 5: Incomplete string escaping or encoding #2271

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

kdinev
Copy link
Member

@kdinev kdinev commented Nov 15, 2024

Fixes https://github.com/IgniteUI/ignite-ui/security/code-scanning/5

To fix the problem, we need to ensure that backslashes in tempToken[1] are properly escaped before using it in a regular expression. This can be achieved by adding an additional replace call to escape backslashes. Specifically, we should replace each backslash (\) with a double backslash (\\) before proceeding with the existing replacements.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kdinev kdinev marked this pull request as ready for review November 15, 2024 09:37
@ChronosSF ChronosSF merged commit 92050fe into master Nov 15, 2024
4 checks passed
@ChronosSF ChronosSF deleted the alert-autofix-5 branch November 15, 2024 13:30
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