diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-06 20:06:59 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-06 20:06:59 +0100 |
commit | 0d71223a1dce3745da443cc6239e27f07fe07113 (patch) | |
tree | 6e6a89de3bafc3a8e7c7474c0105e3f5cc595507 /src/html-error.c | |
parent | f1a6d063b0bf0ca98e0578482b1541907a78bb3a (diff) |
send_html_file(): also set empty variables to "(unknown)"
Diffstat (limited to 'src/html-error.c')
-rw-r--r-- | src/html-error.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |