diff options
| author | 2022-09-27 10:20:33 +0200 | |
|---|---|---|
| committer | 2022-09-27 10:20:33 +0200 | |
| commit | 48a50770f46f160d8cbc852fdb90ea0c6c74cdd7 (patch) | |
| tree | cfebe9305575252a0ce6dd3192dab1ab00b3802f /httpd.c | |
| parent | Updated dependencies. (diff) | |
| download | snac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.tar.gz snac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.tar.xz snac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.zip | |
Use xs_replace_i() in some places.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -47,7 +47,6 @@ int server_get_handler(d_char *req, char *q_path, | |||
| 47 | xs *list = user_list(); | 47 | xs *list = user_list(); |
| 48 | char *p, *uid; | 48 | char *p, *uid; |
| 49 | xs *ul = xs_str_new("<ul class=\"snac-user-list\">\n"); | 49 | xs *ul = xs_str_new("<ul class=\"snac-user-list\">\n"); |
| 50 | xs *os = s; | ||
| 51 | 50 | ||
| 52 | p = list; | 51 | p = list; |
| 53 | while (xs_list_iter(&p, &uid)) { | 52 | while (xs_list_iter(&p, &uid)) { |
| @@ -67,7 +66,7 @@ int server_get_handler(d_char *req, char *q_path, | |||
| 67 | 66 | ||
| 68 | ul = xs_str_cat(ul, "</ul>\n"); | 67 | ul = xs_str_cat(ul, "</ul>\n"); |
| 69 | 68 | ||
| 70 | s = xs_replace(os, "%userlist%", ul); | 69 | s = xs_replace_i(s, "%userlist%", ul); |
| 71 | } | 70 | } |
| 72 | 71 | ||
| 73 | *body = s; | 72 | *body = s; |