]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- ticket 101
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 21 Apr 2005 08:32:35 +0000 (08:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd-request_header-print.patch -> 1.1

lighttpd-request_header-print.patch [new file with mode: 0644]

diff --git a/lighttpd-request_header-print.patch b/lighttpd-request_header-print.patch
new file mode 100644 (file)
index 0000000..572fc8b
--- /dev/null
@@ -0,0 +1,23 @@
+output byte, instead of number if the request line contains invalid char
+
+--- ../src/request.c~  2005-04-19 19:05:00.000000000 +0300
++++ ../src/request.c   2005-04-19 19:05:05.000000000 +0300
+@@ -450,12 +450,15 @@
+                               /* check uri for invalid characters */
+                               for (j = 0; j < con->request.uri->used - 1; j++) {
+                                       if (!request_uri_is_valid_char(con->request.uri->ptr[j])) {
++                                              unsigned char buf[2];
++                                          buf[0] = con->request.uri->ptr[j];
++                                              buf[1] = '\0';
++
+                                               con->http_status = 400;
+                                               con->keep_alive = 0;
+                                               
+-                                              log_error_write(srv, __FILE__, __LINE__, "sd",
+-                                                              "invalid character in URI -> 400",
+-                                                              con->request.uri->ptr[j]);
++                                              log_error_write(srv, __FILE__, __LINE__, "sss",
++                                                              "invalid character in URI", buf, "-> 400");
+                                               
+                                               if (srv->srvconf.log_request_header_on_error) {
+                                                       log_error_write(srv, __FILE__, __LINE__, "Sb",
This page took 0.145091 seconds and 4 git commands to generate.