summaryrefslogtreecommitdiff
path: root/lib/escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/escape.c')
-rw-r--r--lib/escape.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/escape.c b/lib/escape.c
index 24134c8e8..626581819 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -138,6 +138,12 @@ char *curl_easy_escape(CURL *handle, const char *string, int inlength)
return ns;
}
+/*
+ * Unescapes the given URL escaped string of given length. Returns a
+ * pointer to a malloced string with length given in *olen.
+ * If length == 0, the length is assumed to be strlen(string).
+ * If olen == NULL, no output length is stored.
+ */
char *curl_easy_unescape(CURL *handle, const char *string, int length,
int *olen)
{