mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Replace %host% in greeting.html.
This commit is contained in:
parent
af8f3ad324
commit
c5070941cf
3
httpd.c
3
httpd.c
@ -44,6 +44,9 @@ int server_get_handler(d_char *req, char *q_path,
|
|||||||
|
|
||||||
status = 200;
|
status = 200;
|
||||||
|
|
||||||
|
/* replace %host% */
|
||||||
|
s = xs_replace_i(s, "%host%", xs_dict_get(srv_config, "host"));
|
||||||
|
|
||||||
/* does it have a %userlist% mark? */
|
/* does it have a %userlist% mark? */
|
||||||
if (xs_str_in(s, "%userlist%") != -1) {
|
if (xs_str_in(s, "%userlist%") != -1) {
|
||||||
char *host = xs_dict_get(srv_config, "host");
|
char *host = xs_dict_get(srv_config, "host");
|
||||||
|
Loading…
Reference in New Issue
Block a user