Permalink
Browse files

Fix list expression handling logic (#5245)

  • Loading branch information...
tbonfort committed Feb 18, 2016
1 parent 9ade01a commit 0d71c41d2fe86e603f6ab1114b9fedc7f1db5b58
Showing with 2 additions and 1 deletion.
  1. +2 −1 maputil.c
View
@@ -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;

0 comments on commit 0d71c41

Please sign in to comment.