Opened 7 years ago

Last modified 6 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:


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 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by justinrowles

Attachment: escapeAttributes.patch added

comment:1 Changed 6 years ago by josegar74

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