Skip to content
Snippets Groups Projects
Commit f7d82262 authored by Qianqian Fang's avatar Qianqian Fang
Browse files

prevent function calls when parsing array strings using eval, fix #75

parent b1ae5fa9
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ function [object, pos,index_esc] = parse_array(inputstr, pos, esc, index_esc, va
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment