File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ ### This fork includes PR with a vulnerability fix (https://github.com/timdown/rangy/pull/482)
2+
13Rangy
24=====
35
Original file line number Diff line number Diff line change 158158 util . extend = extend = function ( obj , props , deep ) {
159159 var o , p ;
160160 for ( var i in props ) {
161+ if ( i === "__proto__" || i === "constructor" || i === "prototype" ) {
162+ continue ;
163+ }
161164 if ( props . hasOwnProperty ( i ) ) {
162165 o = obj [ i ] ;
163166 p = props [ i ] ;
38623865 win = null ;
38633866 } ) ;
38643867 } ) ;
3865-
3868+
38663869
38673870 /*----------------------------------------------------------------------------------------------------------------*/
38683871
38933896 }
38943897
38953898 return api ;
3896- } , this ) ;
3899+ } , this ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " rangy" ,
33 "description" : " A cross-browser DOM range and selection library" ,
4- "version" : " 1.3.1 " ,
4+ "version" : " 1.3.2 " ,
55 "author" : {
66 "name" : " Tim Down" ,
77 "email" : " tim@timdown.co.uk" ,
3333 "jshint" : " ^2.13.5" ,
3434 "archiver" : " ^5.3.1"
3535 }
36- }
36+ }
Original file line number Diff line number Diff line change 159159 util . extend = extend = function ( obj , props , deep ) {
160160 var o , p ;
161161 for ( var i in props ) {
162+ if ( i === "__proto__" || i === "constructor" || i === "prototype" ) {
163+ continue ;
164+ }
162165 if ( props . hasOwnProperty ( i ) ) {
163166 o = obj [ i ] ;
164167 p = props [ i ] ;
511514 }
512515
513516 return api ;
514- } , this ) ;
517+ } , this ) ;
You can’t perform that action at this time.
0 commit comments