Ticket #561 (new defect)

Opened 3 years ago

Last modified 2 years ago

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

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

Change History

Changed 3 years ago by justinrowles

Changed 2 years ago by josegar74

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