--- server_http.c.orig Tue Mar 30 08:24:33 2021 +++ server_http.c Tue Mar 30 08:18:29 2021 @@ -922,24 +922,24 @@ /* A CSS stylesheet allows minimal customization by the user */ style = "body { background-color: white; color: black; font-family: " - "'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; }\n" - "hr { border: 0; border-bottom: 1px dashed; }\n" + "sans-serif; }\nhr { border: 0; border-bottom: 1px dashed; }\n" "@media (prefers-color-scheme: dark) {\n" "body { background-color: #1E1F21; color: #EEEFF1; }\n" "a { color: #BAD7FF; }\n}"; /* Generate simple HTML error document */ if ((bodylen = asprintf(&body, - "\n" + "\n" "\n" "\n" - "\n" + "\n" "%03d %s\n" - "\n" + "\n" "\n" "\n" "

%03d %s

\n" - "
\n
%s
\n" + "
\n
%s
\n" "\n" "\n", code, httperr, style, code, httperr, HTTPD_SERVERNAME)) == -1) { --- server_file.c.orig Tue Mar 30 08:24:53 2021 +++ server_file.c Tue Mar 30 08:19:59 2021 @@ -484,16 +484,17 @@ /* Generate simple HTML index document */ if (evbuffer_add_printf(evb, - "\n" - "\n" + "\n" + "\n" "\n" - "\n" + "\n" "Index of %s\n" - "\n" + "\n" "\n" "\n" "

Index of %s

\n" - "
\n
\n",
+           "
\n
\n",
            escapedpath, style, escapedpath) == -1)
                skip = 1;

@@ -546,7 +547,7 @@

        if (skip ||
            evbuffer_add_printf(evb,
-           "
\n
\n\n\n") == -1) + "
\n
\n\n\n") == -1) goto abort; close(fd);