ACS-5403 Prevent possibility to override prototype (#8719)

This commit is contained in:
AleksanderSklorz 2023-06-30 19:20:38 +02:00 committed by GitHub
parent ecbf571451
commit c813bde005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,10 +324,12 @@ export class LoginComponent implements OnInit, OnDestroy {
msg: string,
params?: any
) {
this._message[field][ruleId] = {
value: msg,
params
};
if (field !== '__proto__' && field !== 'constructor' && field !== 'prototype') {
this._message[field][ruleId] = {
value: msg,
params
};
}
}
/**