diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-07-24 21:00:29 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-07-25 09:04:35 +0100 |
commit | a122b94efde125202388d135e36eb86e6d25d093 (patch) | |
tree | 73e9d34dbc6c7443c727b8d85ba2c1127e4ed1c3 /desktop/searchweb.c | |
parent | 7bff70e7466dd80603922ba0dfdad1725cce41a6 (diff) | |
download | netsurf-a122b94efde125202388d135e36eb86e6d25d093.tar.gz netsurf-a122b94efde125202388d135e36eb86e6d25d093.tar.bz2 |
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.
Diffstat (limited to 'desktop/searchweb.c')
-rw-r--r-- | desktop/searchweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |