From 18537ec134b1b47140709c233f11c076f37d1b66 Mon Sep 17 00:00:00 2001 From: Dale Whittaker Date: Sun, 1 Feb 2009 19:38:17 +0100 Subject: [PATCH] Always insert completion addresses with a trailing slash --- midori/midori-locationaction.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index bdcfce06..ea95cfdd 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -642,7 +642,11 @@ midori_location_action_iter_insert (MidoriLocationAction* location_action, model = location_action->model; gtk_list_store_insert (GTK_LIST_STORE (model), iter, position); path = gtk_tree_model_get_string_from_iter (model, iter); - g_hash_table_insert (location_action->items, g_strdup (uri), path); + g_hash_table_insert (location_action->items, + g_str_has_suffix (uri, "/") ? + g_strdup (uri) : + g_strconcat (uri, "/", NULL), + path); return FALSE; } -- 2.39.5