Home
last modified time | relevance | path

Searched refs:decoded_path (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ntp/sntp/libevent/sample/
H A Dhttp-server.c189 char *decoded_path; in send_document_cb() local
215 decoded_path = evhttp_uridecode(path, 0, NULL); in send_document_cb()
216 if (decoded_path == NULL) in send_document_cb()
222 if (strstr(decoded_path, "..")) in send_document_cb()
225 len = strlen(decoded_path)+strlen(o->docroot)+2; in send_document_cb()
230 evutil_snprintf(whole_path, len, "%s/%s", o->docroot, decoded_path); in send_document_cb()
282 decoded_path, /* XXX html-escape this. */ in send_document_cb()
285 decoded_path /* XXX html-escape this */); in send_document_cb()
312 const char *type = guess_content_type(decoded_path); in send_document_cb()
338 if (decoded_path) in send_document_cb()
[all …]
/freebsd/contrib/libevent/sample/
H A Dhttp-server.c189 char *decoded_path; in send_document_cb() local
215 decoded_path = evhttp_uridecode(path, 0, NULL); in send_document_cb()
216 if (decoded_path == NULL) in send_document_cb()
222 if (strstr(decoded_path, "..")) in send_document_cb()
225 len = strlen(decoded_path)+strlen(o->docroot)+2; in send_document_cb()
230 evutil_snprintf(whole_path, len, "%s/%s", o->docroot, decoded_path); in send_document_cb()
282 decoded_path, /* XXX html-escape this. */ in send_document_cb()
285 decoded_path /* XXX html-escape this */); in send_document_cb()
312 const char *type = guess_content_type(decoded_path); in send_document_cb()
338 if (decoded_path) in send_document_cb()
[all …]