Ticket #2641 (closed defect: fixed)
expressions and text with apostrophe
| Reported by: | assefa | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
We come ac cross an issue where a text with an apostrophe in it was rendered with an extra backslash. The data is a shape file and the original text is St John's and it was rendered as St John\'s. Following the code, this seems to happen in msEvalExpression with an expression that looks like FILTER ("[NAME]" != "Washington"). I am attaching a patch that fixes the problem. I am somehow surprised that this did not happen to other users so I won't apply the patch in case I have missed something obvious.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

