]> spindle.queued.net Git - midori/commitdiff
Replace slash (/) appearing in the display name
authorChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 22:03:35 +0000 (23:03 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 22:03:35 +0000 (23:03 +0100)
midori/midori-app.c

index 483dda89c638d6393dad4af27c3566c1124365d9..4c2afc50847b27739df373c66192bd3c5facb508 100644 (file)
@@ -726,8 +726,7 @@ midori_app_create_instance (MidoriApp* app)
     display_name = g_strdup (gdk_display_get_name (display));
     n = strlen (display_name);
     for (i = 0; i < n; i++)
-        if (display_name[i] == ':' || display_name[i] == '.'
-         || display_name[i] == '\\')
+        if (strchr (":.\\/", display_name[i]))
             display_name[i] = '_';
     instance_name = g_strdup_printf ("de.twotoasts.%s_%s", app->name, display_name);