]> 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:57 +0000 (07:55 -0600)
commitb42dd930f4332a74b2031475d7e4806bb157db41
tree8f26c82c5d06d5310dd22ce2359bea9c0e27cbaf
parent3d390c4df7739112f6c3837caab6ec38b1b58cf5
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