소스 검색

Do not reply invalid URIs in error messages

bel 9 년 전
부모
커밋
8658a22ac6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
 				}