Skip to content

Commit

Permalink
Feature names with dots are now supported for feature id filtering (f…
Browse files Browse the repository at this point in the history
…ixes #5741)
  • Loading branch information
ravhed committed Apr 12, 2019
1 parent 848b243 commit b8139f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapogcfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ int FLTCheckFeatureIdFilters(FilterEncodingNode *psFilterNode,
tokens = msStringSplit(psFilterNode->pszValue,',', &nTokens);
for (j=0; j<nTokens; j++) {
const char* pszId = tokens[j];
const char* pszDot = strchr(pszId, '.');
const char* pszDot = strrchr(pszId, '.');
if( pszDot )
{
if( pszDot - pszId != strlen(lp->name) ||
Expand Down
2 changes: 1 addition & 1 deletion mapogcfiltercommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ char *FLTGetFeatureIdCommonExpression(FilterEncodingNode *psFilterNode, layerObj
char *pszTmp = NULL;
int bufferSize = 0;
const char* pszId = tokens[i];
const char* pszDot = strchr(pszId, '.');
const char* pszDot = strrchr(pszId, '.');
if( pszDot )
pszId = pszDot + 1;

Expand Down

0 comments on commit b8139f2

Please sign in to comment.