diff options
Diffstat (limited to '')
| -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; |