[Mapserver-dev] HTML-encoding of metadata values in WMS Capabilities

Daniel Morissette dmorissette at dmsolutions.ca
Wed Aug 4 18:17:36 EDT 2004


Bug 802 has been opened today about the fact that MapServer doesn't 
HTML-encode metadata values such as wms_title that are written to WMS 
Capabilities. This may result in invalid XML and cause some client 
parsers to fail parsing the capabilities. Until now it was the 
responsibility of the mapfile developer to HTML-encode the metadata 
values, but I don't think that was documented anywhere. The problem with 
letting the user take care of this is that it increases the chances of 
having MapServer generate invalid capabilities XML.

I would like to change MapServer's WMS Capabilities generator to 
automatically encode mapfile metadata values before outputing them. This 
would be done in the 4.3 dev version only of course. We should also do 
the same for WFS and WCS Capabilities. It's mostly a matter of replacing 
calls to msOWSPrintMetadata() by msOWSPrintEncodeMetadata().

Does anyone see a problem with that? Please comment via the bug:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=802

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-dev mailing list