File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -933,6 +933,7 @@ lib.expandObjectPaths = function(data) {
933
933
if ( ( match = key . match ( dottedPropertyRegex ) ) ) {
934
934
datum = data [ key ] ;
935
935
prop = match [ 1 ] ;
936
+ if ( prop === '__proto__' ) continue ;
936
937
937
938
delete data [ key ] ;
938
939
@@ -941,6 +942,8 @@ lib.expandObjectPaths = function(data) {
941
942
datum = data [ key ] ;
942
943
943
944
prop = match [ 1 ] ;
945
+ if ( prop === '__proto__' ) continue ;
946
+
944
947
idx = parseInt ( match [ 2 ] ) ;
945
948
946
949
delete data [ key ] ;
@@ -969,9 +972,12 @@ lib.expandObjectPaths = function(data) {
969
972
} else {
970
973
// This is the case where this property is the end of the line,
971
974
// e.g. xaxis.range[0]
975
+
976
+ if ( prop === '__proto__' ) continue ;
972
977
data [ prop ] [ idx ] = lib . expandObjectPaths ( datum ) ;
973
978
}
974
979
} else {
980
+ if ( key === '__proto__' ) continue ;
975
981
data [ key ] = lib . expandObjectPaths ( data [ key ] ) ;
976
982
}
977
983
}
You can’t perform that action at this time.
0 commit comments