Skip to content

Commit

Permalink
Trimming MVEL scripts before compiling them.
Browse files Browse the repository at this point in the history
This bypasses an issue with MVEL error handling why can go into an infinite loop in some edge cases. More info here: http://jira.codehaus.org/browse/MVEL-292

Closes elastic#3168
  • Loading branch information
bleskes committed Jun 19, 2013
1 parent b831379 commit 4a82595
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -82,7 +82,7 @@ public String[] extensions() {

@Override
public Object compile(String script) {
return MVEL.compileExpression(script, new ParserContext(parserConfiguration));
return MVEL.compileExpression(script.trim(), new ParserContext(parserConfiguration));
}

@Override
Expand Down

0 comments on commit 4a82595

Please sign in to comment.