allow only lowercase characters, digits, '_' and '.' in keys

This commit is contained in:
Christian Thaeter 2008-08-08 04:52:43 +02:00
parent eb60e71136
commit 87c7fea4ac

View file

@ -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)
{