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