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 _,
|
||||
as side effect, this also checks the key syntax */
|
||||
char* tr_key = lumiera_tmpbuf_tr (key,
|
||||
"abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVQXYZ01234567_.-",
|
||||
"ABCDEFGHIJKLMNOPQRSTUVQXYZABCDEFGHIJKLMNOPQRSTUVQXYZ01234567___",
|
||||
"abcdefghijklmnopqrstuvqxyz0123456789_.",
|
||||
"ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789__",
|
||||
NULL);
|
||||
if (!tr_key)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue