libnm-glib: allow the '.' character in agent identifiers

This commit is contained in:
Dan Williams 2010-12-14 11:19:19 -06:00
parent ffac6b33c6
commit 81bc9c8572

View file

@ -458,7 +458,7 @@ validate_identifier (const char *identifier)
/* FIXME: do complete validation here */
while (p && *p) {
if (!isalnum (*p) && (*p != '_') && (*p != '-'))
if (!isalnum (*p) && (*p != '_') && (*p != '-') && (*p != '.'))
return FALSE;
if ((*p == '.') && (*(p + 1) == '.'))
return FALSE;