cgi_escape

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

cgi_escape, cgi_unescape - %-escape and unescape CGI arguments.

SYNOPSIS

#include <pthr_cgi.h>

char *cgi_escape (pool, const char *str);
char *cgi_unescape (pool, const char *str);

DESCRIPTION

These functions do %-escaping and unescaping on CGI arguments. When %-escaping a string, " " is replaced by "+", and non-printable characters are replaced by "%hh" where hh is a two-digit hex code. Unescaping a string reverses this process.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3

SEE ALSO

new_cgi(3), new_http_request(3).