elm config - forbid bakcslash in profile name too
/ already is forbidden but \ might be valid on windows, so forbid it too.
This commit is contained in:
parent
944ce7ef41
commit
2cdc63024d
|
@ -1456,6 +1456,8 @@ _profile_fetch_from_conf(void)
|
|||
{
|
||||
p = strchr(_elm_profile, '/');
|
||||
if (p) *p = 0;
|
||||
p = strchr(_elm_profile, '\\');
|
||||
if (p) *p = 0;
|
||||
if (!strcmp(_elm_profile, ".."))
|
||||
{
|
||||
free(_elm_profile);
|
||||
|
|
Loading…
Reference in New Issue