Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/libevent/dist/sample/
H A Dhttp-server.c190 char *decoded_path; in send_document_cb() local
216 decoded_path = evhttp_uridecode(path, 0, NULL); in send_document_cb()
217 if (decoded_path == NULL) in send_document_cb()
223 if (strstr(decoded_path, "..")) in send_document_cb()
226 len = strlen(decoded_path)+strlen(o->docroot)+2; in send_document_cb()
231 evutil_snprintf(whole_path, len, "%s/%s", o->docroot, decoded_path); in send_document_cb()
283 decoded_path, /* XXX html-escape this. */ in send_document_cb()
286 decoded_path /* XXX html-escape this */); in send_document_cb()
313 const char *type = guess_content_type(decoded_path); in send_document_cb()
339 if (decoded_path) in send_document_cb()
[all …]