Nobody sees them, source code is here, resulted DOM can be seen in web inspector

Signed-off-by: Sergey Ponomarev <stok...@gmail.com>
---
 networking/httpd_indexcgi.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/networking/httpd_indexcgi.c b/networking/httpd_indexcgi.c
index b652ba9ff..8978a9c1a 100644
--- a/networking/httpd_indexcgi.c
+++ b/networking/httpd_indexcgi.c
@@ -276,18 +276,18 @@ int main(int argc, char *argv[])
        /* Guard against directories with &, > etc */
        fmt_html(location);
        fmt_str(
-               "</title>\n"
+               "</title>"
                STYLE_STR
-               "</head>" "\n"
-               "<body>" "\n"
+               "</head>"
+               "<body>"
                "<h1>Index of ");
        fmt_html(location);
        fmt_str(
-               "</h1>" "\n"
-               "<table>" "\n"
-               "<col class=nm><col class=sz><col class=dt>" "\n"
+               "</h1>"
+               "<table>"
+               "<col class=nm><col class=sz><col class=dt>"
                "<thead>"
-               "<tr><th class=cnt>Name<th class=sz>Size<th class=dt>Last 
modified" "\n"
+               "<tr><th class=cnt>Name<th class=sz>Size<th class=dt>Last 
modified"
                "</thead>"
                "<tbody>");
 
@@ -325,7 +325,6 @@ int main(int argc, char *argv[])
                fmt_02u(ptm->tm_hour); *dst++ = ':';
                fmt_02u(ptm->tm_min); *dst++ = ':';
                fmt_02u(ptm->tm_sec);
-               *dst++ = '\n';
 
  next:
                cdir++;
@@ -340,7 +339,7 @@ int main(int argc, char *argv[])
        fmt_ull(count_dirs - 1);
        fmt_str("<th class=sz>");
        fmt_ull(size_total);
-       fmt_str("<th class=dt>\n"
+       fmt_str("<th class=dt>"
                "</tfoot>");
        /* "</table></body></html>" - why bother? */
        guarantee(BUFFER_SIZE * 2); /* flush */
-- 
2.25.1

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to