summaryrefslogtreecommitdiffstats
path: root/escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'escape.c')
-rw-r--r--escape.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/escape.c b/escape.c
index 3bb25c2..f370fc9 100644
--- a/escape.c
+++ b/escape.c
@@ -313,6 +313,12 @@ char *escape_args(const char * const *args, size_t *length)
return escape_url(NULL, NULL, args, length);
}
+const char *escape_str(const char* str, size_t *length)
+{
+ const char *a[2] = { str, NULL };
+ return escape_args(a, length);
+}
+
const char **unescape_args(const char *args)
{
const char **r, **q;