[epiphany] location-controller: Decode URI in get_location_cb



commit 62cb7dae9d87bfeee8e5127cacafe030cfcc8ac7
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Sep 9 15:16:28 2017 -0500

    location-controller: Decode URI in get_location_cb
    
    Otherwise, pressing Escape inside the location entry causes the URI to
    become percent-encoded. Oops.

 src/ephy-location-controller.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-location-controller.c b/src/ephy-location-controller.c
index 3ccbcfe..d6d36da 100644
--- a/src/ephy-location-controller.c
+++ b/src/ephy-location-controller.c
@@ -32,6 +32,7 @@
 #include "ephy-location-entry.h"
 #include "ephy-shell.h"
 #include "ephy-title-widget.h"
+#include "ephy-uri-helpers.h"
 #include "ephy-widgets-type-builtins.h"
 
 #include <gdk/gdkkeysyms.h>
@@ -232,7 +233,7 @@ get_location_cb (EphyLocationEntry      *entry,
   embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (controller->window));
   address = ephy_web_view_get_address (ephy_embed_get_web_view (embed));
 
-  return ephy_embed_utils_is_no_show_address (address) ? NULL : g_strdup (address);
+  return ephy_embed_utils_is_no_show_address (address) ? NULL : ephy_uri_decode (address);
 }
 
 static char *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]