Skip to content

Commit

Permalink
prevent function calls when parsing array strings using eval, fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 23, 2021
1 parent b1ae5fa commit f7d8226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadjson.m
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
end
end
end
if(isempty(regexp(arraystr,':','once')))
if(isempty(regexp(arraystr,':','once')) && isempty(regexp(arraystr,'\(','once')))
arraystr=regexprep(arraystr,'\[','{');
arraystr=regexprep(arraystr,'\]','}');
if(varargin{1}.parsestringarray==0)
Expand Down

0 comments on commit f7d8226

Please sign in to comment.