From 0d71223a1dce3745da443cc6239e27f07fe07113 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 6 Sep 2020 20:06:59 +0100 Subject: send_html_file(): also set empty variables to "(unknown)" --- src/html-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/html-error.c b/src/html-error.c index 3018b46..f04943e 100644 --- a/src/html-error.c +++ b/src/html-error.c @@ -107,7 +107,7 @@ send_html_file (FILE *infile, struct conn_s *connptr) varval = (const char *) lookup_variable (connptr->error_variables, varstart); - if (!varval) + if (!varval || !varval[0]) varval = "(unknown)"; r = write_message (connptr->client_fd, "%s", varval); -- cgit v1.2.3