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 /utils/url.h | |
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 'utils/url.h')
-rw-r--r-- | utils/url.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/url.h b/utils/url.h index 5d8d1540c..c22c43b2a 100644 --- a/utils/url.h +++ b/utils/url.h @@ -32,13 +32,12 @@ * Escape a string suitable for inclusion in an URL. * * \param unescaped the unescaped string - * \param toskip number of bytes to skip in unescaped string * \param sptoplus true iff spaces should be converted to + * \param escexceptions NULL or a string of characters excluded to be escaped * \param result pointer to pointer to buffer to hold escaped string * \return NSERROR_OK on success */ -nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus, +nserror url_escape(const char *unescaped, bool sptoplus, const char *escexceptions, char **result); |