Opened 20 years ago
Last modified 15 years ago
#681 new defect
[MapServer]Save in map object doesn't distinguish between quotation and apostrophe — at Initial Version
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | 6.0 release |
Component: | MapServer C Library | Version: | 4.2 |
Severity: | normal | Keywords: | |
Cc: | sgillies@…, hrz@… |
Description
PHP MapScript "save" method in "map" object doesn't distinguish between quotation and apostrophe. This may cause some parsing error when reading the new map. For example if a map contains the following string: CONNECTION '<OGRVRTDataSource><OGRVRTLayer name="pointOfInterest"><SrcDataSource>ODBC:sp-wms-TextDSN002,PointOfInterest</SrcDataSource><SrcLayer>PointOfInterest</SrcLayer><GeometryType>wkbPoint</GeometryType><LayerSRS>WGS84</LayerSRS><GeometryField encoding="PointFromColumns" x="XCoord" y="YCoord"/></OGRVRTLayer></OGRVRTDataSource>' the new string will look like the following after using map->save: CONNECTION "<OGRVRTDataSource><OGRVRTLayer name="pointOfInterest"><SrcDataSource>ODBC:sp-wms-TextDSN002,PointOfInterest</SrcDataSource><SrcLayer>PointOfInterest</SrcLayer><GeometryType>wkbPoint</GeometryType><LayerSRS>WGS84</LayerSRS><GeometryField encoding="PointFromColumns" x="XCoord" y="YCoord"/></OGRVRTLayer></OGRVRTDataSource>"
Note:
See TracTickets
for help on using tickets.