From 2cdc63024d9f63e9d2752adef5f836baab9b2bde Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 8 Feb 2017 17:51:52 +0900 Subject: [PATCH] elm config - forbid bakcslash in profile name too / already is forbidden but \ might be valid on windows, so forbid it too. --- src/lib/elementary/elm_config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index 49fdcd5ceb..2854122a80 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -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);