mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-27 06:31:54 +00:00
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
This commit is contained in:
committed by
Friendly Automation
parent
aa6a50630f
commit
118e034287
8
doc/UPGRADE-staging/manager_amxml_attribute_fix.txt
Normal file
8
doc/UPGRADE-staging/manager_amxml_attribute_fix.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Subject: AMI
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user