Skip to content

Commit

Permalink
Fix code scanning alert no. 2: Prototype-polluting function
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
alex-w and github-advanced-security[bot] authored Sep 28, 2024
1 parent 3915b13 commit b8ade14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/RemoteControl/webroot/js/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ var requirejs, require, define;
function mixin(target, source, force, deepStringMixin) {
if (source) {
eachProp(source, function (value, prop) {
if (prop === '__proto__' || prop === 'constructor') {
return;
}
if (force || !hasProp(target, prop)) {
if (deepStringMixin && typeof value === 'object' && value &&
!isArray(value) && !isFunction(value) &&
Expand Down

0 comments on commit b8ade14

Please sign in to comment.