diff options
author | default <nobody@localhost> | 2022-10-16 09:59:36 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-16 09:59:36 +0200 |
commit | c5070941cf90a7f381211eb6cdfab466f5ad2048 (patch) | |
tree | 6e9055b227f7a7f8d83ceea91fe6975f6ef8d0cd /httpd.c | |
parent | af8f3ad324fcbf96ec66b9b240dc615d79da87ef (diff) |
Replace %host% in greeting.html.
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |