diff options
Diffstat (limited to 'escape.c')
-rw-r--r-- | escape.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |