You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ha...@apache.org on 2020/11/10 12:03:51 UTC

[ambari] branch branch-2.7 updated: AMBARI-25581. Prototype pollution issue in JQuery (dpidhaiets via dgrinenko) (#3258)

This is an automated email from the ASF dual-hosted git repository.

hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new b3cdb14  AMBARI-25581. Prototype pollution issue in JQuery (dpidhaiets via dgrinenko) (#3258)
b3cdb14 is described below

commit b3cdb14b0078f7271d411d2ee631a60dafaea4a4
Author: pidhaietsdp <62...@users.noreply.github.com>
AuthorDate: Tue Nov 10 14:03:31 2020 +0200

    AMBARI-25581. Prototype pollution issue in JQuery (dpidhaiets via dgrinenko) (#3258)
---
 ambari-web/vendor/scripts/jquery-1.9.1.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/vendor/scripts/jquery-1.9.1.js b/ambari-web/vendor/scripts/jquery-1.9.1.js
index bed4ee0..6cb1424 100644
--- a/ambari-web/vendor/scripts/jquery-1.9.1.js
+++ b/ambari-web/vendor/scripts/jquery-1.9.1.js
@@ -350,7 +350,7 @@
           copy = options[ name ];
 
           // Prevent never-ending loop
-          if ( target === copy ) {
+          if ( name === "__proto__" || target === copy ) {
             continue;
           }