Explorar o código

Do not reply invalid URIs in error messages

bel %!s(int64=9) %!d(string=hai) anos
pai
achega
8658a22ac6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -12796,9 +12796,9 @@ process_new_connection(struct mg_connection *conn)
 					            NULL, /* No truncation check for ebuf */
 					            ebuf,
 					            sizeof(ebuf),
-					            "Invalid URI: [%s]",
-					            ri->request_uri);
+					            "Invalid URI");
 					send_http_error(conn, 400, "%s", ebuf);
+					conn->request_info.local_uri = NULL;
 					break;
 				}