1cgi_url_validate(3)                cgi/cgi.h               cgi_url_validate(3)
2
3
4

NAME

6       cgi_url_validate  - validate that url is of an allowed format
7

SYNOPSIS

9       #include <cgi/cgi.h>
10
11
12       NEOERR *cgi_url_validate (const char *buf, char **esc);
13
14
15
16

ARGUMENTS

18       buf - a 0 terminated string
19
20

DESCRIPTION

22       cgi_url_validate  will check that a URL starts with one of the accepted
23       safe schemes.  If not, it returns "#" as a safe substitute.   Currently
24       accepted schemes are http, https, ftp and mailto.  It then html escapes
25       the entire URL so that it is safe to insert in an href attribute.
26
27

RETURN VALUE

29       esc - a newly allocated string
30
31

SEE ALSO

33       cgi_debug_init(3),  cgi_parse(3),   cgi_destroy(3),   cgi_js_escape(3),
34       cgi_html_escape_strfunc(3),   cgi_register_strfuncs(3),  cgi_output(3),
35       parse_rfc2388(3), cgi_url_validate(3), open_upload(3),  cgi_cs_init(3),
36       cgi_url_escape_more(3),   cgi_html_strip_strfunc(3),  cgi_neo_error(3),
37       cgi_redirect(3),      cgi_filehandle(3),      cgi_register_parse_cb(3),
38       cgi_url_escape(3),           cgi_init(3),          cgi_redirect_uri(3),
39       cgi_cookie_clear(3),  cgi_url_unescape(3),  cgi_vredirect(3),  cgi_dis‐
40       play(3),    cgi_html_ws_strip(3),    cgi_error(3),   cgi_cookie_set(3),
41       cgi_text_html_strfunc(3), cgi_cookie_authority
42
43
44
45ClearSilver                      12 July 2007              cgi_url_validate(3)
Impressum