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

mitigate pot. prototype pollution problem #3122

Merged
merged 1 commit into from
Aug 18, 2024
Merged

mitigate pot. prototype pollution problem #3122

merged 1 commit into from
Aug 18, 2024

Conversation

cdietrich
Copy link
Member

No description provided.

@cdietrich cdietrich changed the title mitigate pot. heap pollution problem mitigate pot. prototype pollution problem Aug 6, 2024
@@ -74,7 +74,10 @@
function mixin(target, source, force) {
var prop;
for (prop in source) {
if (source.hasOwnProperty(prop) && (!target.hasOwnProperty(prop) || force)) {
if (prop === '__proto__' || prop === 'constructor') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks reasonable to me.

@cdietrich cdietrich merged commit 01fced3 into main Aug 18, 2024
11 checks passed
@cdietrich cdietrich deleted the cd-mit-heap-poll branch August 18, 2024 11:23
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