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. --- utils/url.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils/url.h') 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); -- cgit v1.2.3