[PATCH] httpd: Fix serving of index.html, closes 13991

Arjun AK arjunak234 at gmail.com
Wed Jun 8 19:42:17 UTC 2022


This bug was introduced by commit 91a58b207ea04e

Signed-off-by: Arjun AK <arjunak234 at gmail.com>
---
 networking/httpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/httpd.c b/networking/httpd.c
index ffc58e10b..67b4ecfe4 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2614,7 +2614,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
 	/* !CGI: it can be only GET or HEAD */
 #endif
 
-#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
+#if ENABLE_FEATURE_HTTPD_BASIC_AUTH || ENABLE_FEATURE_HTTPD_CGI
 	/* Restore truncated .../index.html */
 	if (urlp[-1] == '/')
 		urlp[0] = index_page[0];
-- 
2.36.1



More information about the busybox mailing list