allow only lowercase characters, digits, '_' and '.' in keys
This commit is contained in:
parent
eb60e71136
commit
87c7fea4ac
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ lumiera_config_get (const char* key, const char** value)
|
||||||
/* we translate the key for the env var override by making it uppercase and replace . and - with _,
|
/* we translate the key for the env var override by making it uppercase and replace . and - with _,
|
||||||
as side effect, this also checks the key syntax */
|
as side effect, this also checks the key syntax */
|
||||||
char* tr_key = lumiera_tmpbuf_tr (key,
|
char* tr_key = lumiera_tmpbuf_tr (key,
|
||||||
"abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVQXYZ01234567_.-",
|
"abcdefghijklmnopqrstuvqxyz0123456789_.",
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVQXYZABCDEFGHIJKLMNOPQRSTUVQXYZ01234567___",
|
"ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789__",
|
||||||
NULL);
|
NULL);
|
||||||
if (!tr_key)
|
if (!tr_key)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue