Skip to content

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

Open

Description

@Red63

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

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

Activity

  1. changed the title [-]四则运算检查isArithmeticExpression和calculate方法参数可任意执行js脚本[/-] [+]四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本[/+] on Apr 17, 2018
  2. shadowOfCode commented on Aug 24, 2018

    @shadowOfCode
    Owner

    多谢提出来,我看看

  3. shadowOfCode commented on Sep 20, 2018

    @shadowOfCode
    Owner

    已经改好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions