From: Carsten Haitzler (Rasterman) Date: Wed, 8 Feb 2017 08:51:52 +0000 (+0900) Subject: elm config - forbid bakcslash in profile name too X-Git-Tag: upstream/1.20.0~2125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cdc63024d9f63e9d2752adef5f836baab9b2bde;p=platform%2Fupstream%2Fefl.git elm config - forbid bakcslash in profile name too / already is forbidden but \ might be valid on windows, so forbid it too. --- diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index 49fdcd5..2854122 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);