From ca848e5756dfd0a983f19c6ea6e6a78ad01ed7ee Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 15 May 2003 18:19:16 +0000 Subject: Protect against the component name having slashes in it. * e-shell.c (parse_default_uri): Protect against the component name having slashes in it. * e-shell-view.c (display_uri): Protect against invalid "default:" URIs. [#43079] svn path=/trunk/; revision=21194 --- shell/e-shell.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index 8b081c2052..5dbf9f8666 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -2167,6 +2167,11 @@ parse_default_uri (EShell *shell, else component = g_strndup (component_start, p - component_start); + if (strchr (component, '/') != NULL) { + g_free (component); + return FALSE; + } + client = gconf_client_get_default (); config_path = g_strdup_printf ("/apps/evolution/shell/default_folders/%s_path", component); -- cgit v1.2.3