Opened 16 years ago
Closed 13 years ago
#2625 closed defect (duplicate)
Single quote escaping in FILTER expressions on shapefiles
Reported by: | mikitessaro | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | shapefile filter quote escaping |
Cc: |
Description
Quotes escaping in filter expressions on shapefile does not work properly with shapefile is string values ar enclosed with single quotes. For example, FILTER ("XY\'Z"="XY\'Z") works fine, but FILTER ('XY\'Z'='XY\'Z') don't. For my work filter expressions are build programmatically and enclosing strings in double quotes is not pratical. For testing I've attached two maps: filterOK.map works fine and uses double quotes for string enclosing, while filterKO.map uses single quotes. Use the attached shapefile for testing. I've tested with MapServer v5.0.2 (ms4w 2.2.7) on Windows 2003.
Closing. Duplicate of #2624