]> 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:55:31 +0000 (07:55 -0600)
commitba4d6aac20d626edff8a6aeeae8f54587d3527d8
treeaf8cedb2e8c731dd4e321d5981221770c9b43616
parentdf9ef1d8d37c4414486a1940cc636ce3ad6e6c95
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