diff options
| author | 2022-10-16 09:59:36 +0200 | |
|---|---|---|
| committer | 2022-10-16 09:59:36 +0200 | |
| commit | c5070941cf90a7f381211eb6cdfab466f5ad2048 (patch) | |
| tree | 6e9055b227f7a7f8d83ceea91fe6975f6ef8d0cd | |
| parent | Don't set the admirer as the referrer if it's a Like. (diff) | |
| download | snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.tar.gz snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.tar.xz snac2-c5070941cf90a7f381211eb6cdfab466f5ad2048.zip | |
Replace %host% in greeting.html.
| -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"); |