1 output byte, instead of number if the request line contains invalid char
3 --- ../src/request.c~ 2005-04-19 19:05:00.000000000 +0300
4 +++ ../src/request.c 2005-04-19 19:05:05.000000000 +0300
6 /* check uri for invalid characters */
7 for (j = 0; j < con->request.uri->used - 1; j++) {
8 if (!request_uri_is_valid_char(con->request.uri->ptr[j])) {
9 + unsigned char buf[2];
10 + buf[0] = con->request.uri->ptr[j];
13 con->http_status = 400;
16 - log_error_write(srv, __FILE__, __LINE__, "sd",
17 - "invalid character in URI -> 400",
18 - con->request.uri->ptr[j]);
19 + log_error_write(srv, __FILE__, __LINE__, "sss",
20 + "invalid character in URI", buf, "-> 400");
22 if (srv->srvconf.log_request_header_on_error) {
23 log_error_write(srv, __FILE__, __LINE__, "Sb",