Sfoglia il codice sorgente

Do not reply invalid URIs in error messages

bel 9 anni fa
parent
commit
8658a22ac6
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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;
 				}