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:
Carsten Haitzler 2017-02-08 17:51:52 +09:00
parent 944ce7ef41
commit 2cdc63024d
1 changed files with 2 additions and 0 deletions

View File

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