Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本 #3

Open
Red63 opened this issue Apr 17, 2018 · 2 comments

Comments

@Red63
Copy link

Red63 commented Apr 17, 2018

比如:
var expression = "alert('haha')";
Bee.ElementaryArithmeticUtils.isArithmeticExpression(expression);
Bee.ElementaryArithmeticUtils.calculate(expression);

eval(expression)不能用于检查四则运算

@Red63 Red63 changed the title 四则运算检查isArithmeticExpression和calculate方法参数可任意执行js脚本 四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本 Apr 17, 2018
@shadowOfCode
Copy link
Owner

多谢提出来,我看看

@shadowOfCode
Copy link
Owner

已经改好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants