Opened 20 years ago

Closed 20 years ago

#892 closed defect (fixed)

[SLD] All XML output should be encoded

Reported by: jlacroix Owned by: assefa
Priority: high Milestone: 4.4 release
Component: WMS Server Version: 4.3
Severity: normal Keywords:
Cc:

Description

In Bug 802, all metadatas and mapfile parameters have been HTML encoded to
prevent MapServer from outputing invalid XML file.

The same should be done for SLD.

This can be done easily by changing all msOWSPrintMetadata and msOWSPrintParam
to msOWSPrintEncodeMetadata and msPrintEncodeParam.

Check Bug 802 for more details.

Change History (5)

comment:1 by jlacroix, 20 years ago

Assefa, Is the SLD code needs to be modified to HTML encode all parameters
included in a XML document? Or is it already the case?

comment:2 by assefa, 20 years ago

It needs to be done when generating the SLD (msSLDGenerateSLDLayer) for I 
think the name parameter and also the filter parameter.

comment:3 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:4 by assefa, 20 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to assefa
looking into this.

comment:5 by assefa, 20 years ago

Resolution: fixed
Status: newclosed
Names and filters uses HTML encode.

Marking it as Fixed.
Note: See TracTickets for help on using tickets.