-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Alert autofix 134 #60471
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
Alert autofix 134 #60471
Conversation
…cter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Review requested:
|
MattIPv4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you explain what this is doing and why?
Also, can you add some tests to demonstrate what issue you are fixing here?
|
"Co-authored-by: Copilot Autofix powered by AI" seems like AI generated advisory. |
|
It's the same automated fix as in #59520. I'm not against an automated fix, but it needs some explaining, and given the issue it proclaims to be fixing, needs some tests. |
ovflowd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous regex does the exact same thing as what this code does. That's what the g argument on the regex does.
This tooling is going to be replaced soon, too.
|
I'll add comprehensive test cases showing:
|
|
I understand the concern about redundancy. The security scanner identified this as a potential vulnerability in specific edge cases. Rather than disputing the scanner, would you prefer I:
|
|
The original PR got closed exactly because this change is marked as "wont-fix". Please don't come to nodejs/node with purely AI generated PRs and generated replies. I'm closing this and marking as spam. |
No description provided.