Quellcode durchsuchen

Do not reply invalid URIs in error messages

bel vor 9 Jahren
Ursprung
Commit
8658a22ac6
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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;
 				}