From f309236fa8fe247c8eec56384a57f323144a2a0d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 27 Oct 2010 20:15:01 +0000 Subject: [PATCH] Fix bug 3095552: don't escape URLs after editing. (credit: Martin Bazley) svn path=/trunk/netsurf/; revision=10911 --- desktop/tree_url_node.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/desktop/tree_url_node.c b/desktop/tree_url_node.c index 86ab8b50a..f70d6ed05 100644 --- a/desktop/tree_url_node.c +++ b/desktop/tree_url_node.c @@ -360,7 +360,7 @@ node_callback_resp tree_url_node_callback(void *user_data, struct node_element *element; url_func_result res; const char *text; - char *norm_text, *escaped_text; + char *norm_text; const struct url_data *data; /** @todo memory leaks on non-shared folder deletion. */ @@ -400,11 +400,7 @@ node_callback_resp tree_url_node_callback(void *user_data, text = msg_data->data.text; if (msg_data->flag == TREE_ELEMENT_URL) { - res = url_escape(text, 0, false, NULL, - &escaped_text); - if (res == URL_FUNC_OK) - res = url_normalize(escaped_text, - &norm_text); + res = url_normalize(text, &norm_text); if (res != URL_FUNC_OK) { if (res == URL_FUNC_FAILED) { warn_user("NoURLError", 0);