[hackers] [quark] add newline after </html> || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 27 Jun 2017 23:31:28 +0200 (CEST)

commit 102cf09cc580066c2382abdc627739e5d4437071
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Tue Jun 27 21:36:52 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Tue Jun 27 23:31:08 2017 +0200

    add newline after </html>

diff --git a/quark.c b/quark.c
index e9aafba..a943f88 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -158,7 +158,7 @@ sendstatus(int fd, enum status s)
                     "\r\n"
                     "<!DOCTYPE html>\n<html>\n\t<head>\n"
                     "\t\t<title>%d %s</title>\n\t</head>\n\t<body>\n"
- "\t\t<h1>%d %s</h1>\n\t</body>\n</html>",
+ "\t\t<h1>%d %s</h1>\n\t</body>\n</html>\n",
                     s, status_str[s], timestamp(0, t),
                     (s == S_METHOD_NOT_ALLOWED) ? "Allow: HEAD, GET\r\n" : "",
                     s, status_str[s], s, status_str[s]) < 0) {
_AT_@ -362,7 +362,7 @@ senddir(int fd, char *name, struct request *r)
                 }
 
                 /* listing footer */
- if (dprintf(fd, "\n\t</body>\n</html>") < 0) {
+ if (dprintf(fd, "\n\t</body>\n</html>\n") < 0) {
                         return S_REQUEST_TIMEOUT;
                 }
         }
Received on Tue Jun 27 2017 - 23:31:28 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 27 2017 - 23:36:27 CEST