mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
Allow XML fields to start with char '_'
This commit is contained in:
parent
0c81dd83f3
commit
ede54275c2
@ -47,7 +47,7 @@ public:
|
||||
|
||||
int size = attribute_name.size();
|
||||
|
||||
if ((size >0 && !isalpha(aname[0]))||
|
||||
if ((size >0 && !(isalpha(aname[0]) || aname[0] == '_')) ||
|
||||
(size >=3 && (aname[0]=='X' && aname[1]=='M' && aname[2]=='L')))
|
||||
{
|
||||
attribute_name.insert(0,"ONE_");
|
||||
|
Loading…
Reference in New Issue
Block a user