1
0
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:
Jaime Melis 2017-06-15 17:06:43 +02:00
parent 0c81dd83f3
commit ede54275c2

View File

@ -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_");