cgi_escape, cgi_unescape - %-escape and unescape CGI arguments. |
#include <pthr_cgi.h> char *cgi_escape (pool, const char *str); char *cgi_unescape (pool, const char *str); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |
new_cgi(3), new_http_request(3). |