summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2022-10-16 09:59:36 +0200
committerGravatar default2022-10-16 09:59:36 +0200
commitc5070941cf90a7f381211eb6cdfab466f5ad2048 (patch)
tree6e9055b227f7a7f8d83ceea91fe6975f6ef8d0cd
parentDon't set the admirer as the referrer if it's a Like. (diff)
downloadpenes-snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.tar.gz
penes-snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.tar.xz
penes-snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.zip
Replace %host% in greeting.html.
-rw-r--r--httpd.c3
1 files changed, 3 insertions, 0 deletions
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,
44 44
45 status = 200; 45 status = 200;
46 46
47 /* replace %host% */
48 s = xs_replace_i(s, "%host%", xs_dict_get(srv_config, "host"));
49
47 /* does it have a %userlist% mark? */ 50 /* does it have a %userlist% mark? */
48 if (xs_str_in(s, "%userlist%") != -1) { 51 if (xs_str_in(s, "%userlist%") != -1) {
49 char *host = xs_dict_get(srv_config, "host"); 52 char *host = xs_dict_get(srv_config, "host");