From: Christian Dywan Date: Wed, 9 Nov 2011 22:03:35 +0000 (+0100) Subject: Replace slash (/) appearing in the display name X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56818ca944803f1b2532f0d5128c603c832fd7d7;p=midori Replace slash (/) appearing in the display name --- diff --git a/midori/midori-app.c b/midori/midori-app.c index 483dda89..4c2afc50 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -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);