Skip to content

Commit

Permalink
Fix list expression handling logic (#5245)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Feb 18, 2016
1 parent 9ade01a commit 0d71c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maputil.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ int msEvalExpression(layerObj *layer, shapeObj *shape, expressionObj *expression
}
{
char *start,*end;
int value_len = strlen(shape->values[itemindex]);
start = expression->string;
while((end = strchr(start,',')) != NULL) {
if(!strncmp(start,shape->values[itemindex],end-start)) return MS_TRUE;
if(value_len == end-start && !strncmp(start,shape->values[itemindex],end-start)) return MS_TRUE;
start = end+1;
}
if(!strcmp(start,shape->values[itemindex])) return MS_TRUE;
Expand Down

0 comments on commit 0d71c41

Please sign in to comment.