From a122b94efde125202388d135e36eb86e6d25d093 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 24 Jul 2016 21:00:29 +0100 Subject: URL escape: Simplify to avoid unnecessary allocation. This removes the toskip parameter, which was only used by the RISC OS front end. The toskip param was used to skip 8 characters which did not need to be escaped from the start of the URL. The RISC OS front end now orders the steps of its URL construction to avoid the need for this. --- desktop/searchweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/searchweb.c b/desktop/searchweb.c index 41ba062fa..593591cc3 100644 --- a/desktop/searchweb.c +++ b/desktop/searchweb.c @@ -240,7 +240,7 @@ make_search_nsurl(struct search_provider *provider, size_t urlstr_len; /* escape the search term and join it to the search url */ - ret = url_escape(term, 0, true, NULL, &eterm); + ret = url_escape(term, true, NULL, &eterm); if (ret != NSERROR_OK) { return ret; } -- cgit v1.2.3