elm config - forbid bakcslash in profile name too
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 8 Feb 2017 08:51:52 +0000 (17:51 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 8 Feb 2017 12:19:39 +0000 (21:19 +0900)
/ already is forbidden but \ might be valid on windows, so forbid it
too.

src/lib/elementary/elm_config.c

index 49fdcd5..2854122 100644 (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);