summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");