Skip to content

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
@kdinev kdinev requested a review from ChronosSF November 15, 2024 09:39
@ChronosSF ChronosSF merged commit 92050fe into master Nov 15, 2024
3 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.

3 participants