SOLR-10601: StreamExpressionParser should handle white space around = in named parameters

This commit is contained in:
Joel Bernstein 2017-05-03 10:25:30 -04:00
parent b901d16b9b
commit 17563ce81f
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public class StreamExpressionParser {
int firstOpenEquals = findNextClear(clause, 0, '='); int firstOpenEquals = findNextClear(clause, 0, '=');
if(firstOpenEquals <= 0 || firstOpenEquals == clause.length() - 1){ return false; } if(firstOpenEquals <= 0 || firstOpenEquals == clause.length() - 1){ return false; }
String name = clause.substring(0, firstOpenEquals); String name = clause.substring(0, firstOpenEquals);
if(!wordToken(name)){ return false; } if(!wordToken(name.trim())){ return false; }
return true; return true;
} }