Skip to content

Commit

Permalink
FLTIsNumeric(): fix so that values like 2004-12-01 aren't recognized …
Browse files Browse the repository at this point in the history
…as numeric on Linux (MapServer#5104)
  • Loading branch information
rouault committed Jun 23, 2015
1 parent 5921730 commit 375e111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapogcfilter.c
Expand Up @@ -66,7 +66,8 @@ int FLTIsNumeric(const char *pszValue)
return MS_TRUE;
#else
char * p;
if (strtod(pszValue, &p) != 0 || *p == '\0') return MS_TRUE;
strtod(pszValue, &p);
if ( p != pszValue && *p == '\0') return MS_TRUE;
#endif
}

Expand Down

0 comments on commit 375e111

Please sign in to comment.