snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit c5070941cf90a7f381211eb6cdfab466f5ad2048
parent af8f3ad324fcbf96ec66b9b240dc615d79da87ef
Author: default <nobody@localhost>
Date:   Sun, 16 Oct 2022 09:59:36 +0200

Replace %host% in greeting.html.

Diffstat:
Mhttpd.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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");