send_html_file(): also set empty variables to "(unknown)"

This commit is contained in:
rofl0r 2020-09-06 20:06:59 +01:00
parent f1a6d063b0
commit 0d71223a1d

View File

@ -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);