Opened 13 years ago

Last modified 13 years ago

#561 new defect

Attributes are not correctly escaped in xml view.

Reported by: justinrowles Owned by: josegar74
Priority: major Milestone: v2.6.5
Component: User interface (web) Version: v2.6.4
Keywords: Cc:

Description

An element:

<myElement myAttr="one&two"/>

should be escaped to:

<myElement myAttr="one&amp;two"/>

when the user enters the xml edit tab. Currently the attribute is not escaped which leads to immediate failure when moving away from the xml edit tab, as the content is not valid xml and cannot be reparsed.

Attachments (1)

escapeAttributes.patch (1.2 KB ) - added by justinrowles 13 years ago.

Download all attachments as: .zip

Change History (2)

by justinrowles, 13 years ago

Attachment: escapeAttributes.patch added

comment:1 by josegar74, 13 years ago

Owner: changed from geonetwork-devel@… to josegar74
Note: See TracTickets for help on using tickets.