Commit 33dc7bd2ce65f30f3efefdb4aad6ff16f1dca774

Stefan Sperling 2020-02-03T10:59:43

HTML-escape errors displayed by gw_display_error()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 521d9a8..8e9a86d 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1342,8 +1342,7 @@ gw_display_error(struct gw_trans *gw_trans, const struct got_error *err)
 
 	if (khtml_open(gw_trans->gw_html_req, gw_trans->gw_req, 0) != KCGI_OK)
 		return;
-
-	khttp_puts(gw_trans->gw_req, err->msg);
+	khtml_puts(gw_trans->gw_html_req, err->msg);
 	khtml_close(gw_trans->gw_html_req);
 }