]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager.c: Generate valid XML if attribute names have leading digits.
authorSean Bright <sean.bright@gmail.com>
Mon, 31 Jan 2022 18:52:26 +0000 (13:52 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 3 Feb 2022 13:50:38 +0000 (07:50 -0600)
commit134cbebc1f97546dec61707da083255fb213945f
tree1f59e2e1dd9ccad50d13c6bc0cacfe925d750707
parent4126d703bf2f37323b4a3a7fc6eff6ff655937fc
manager.c: Generate valid XML if attribute names have leading digits.

The XML Manager Event Interface (amxml) now generates attribute names
that are compliant with the XML 1.1 specification. Previously, an
attribute name that started with a digit would be rendered as-is, even
though attribute names must not begin with a digit. We now prefix
attribute names that start with a digit with an underscore ('_') to
prevent XML validation failures.

This is not backwards compatible but my assumption is that compliant
XML parsers would already have been complaining about this.

ASTERISK-29886 #close

Change-Id: Icfaa56a131a082d803e9b7db5093806d455a0523
doc/UPGRADE-staging/manager_amxml_attribute_fix.txt [new file with mode: 0644]
main/manager.c