From c5070941cf90a7f381211eb6cdfab466f5ad2048 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 16 Oct 2022 09:59:36 +0200 Subject: [PATCH] Replace %host% in greeting.html. --- httpd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httpd.c b/httpd.c index 60bd6f3..d30d05b 100644 --- a/httpd.c +++ b/httpd.c @@ -44,6 +44,9 @@ int server_get_handler(d_char *req, char *q_path, status = 200; + /* replace %host% */ + s = xs_replace_i(s, "%host%", xs_dict_get(srv_config, "host")); + /* does it have a %userlist% mark? */ if (xs_str_in(s, "%userlist%") != -1) { char *host = xs_dict_get(srv_config, "host");