diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 2 insertions, 6 deletions
| @@ -1985,10 +1985,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 1985 | p_vars = xs_dict_get(req, "p_vars"); | 1985 | p_vars = xs_dict_get(req, "p_vars"); |
| 1986 | 1986 | ||
| 1987 | #if 0 | 1987 | #if 0 |
| 1988 | { | 1988 | xs_json_dump_pp(p_vars, 4, stdout); |
| 1989 | xs *j1 = xs_json_dumps_pp(p_vars, 4); | ||
| 1990 | printf("%s\n", j1); | ||
| 1991 | } | ||
| 1992 | #endif | 1989 | #endif |
| 1993 | 1990 | ||
| 1994 | if (p_path && strcmp(p_path, "admin/note") == 0) { /** **/ | 1991 | if (p_path && strcmp(p_path, "admin/note") == 0) { /** **/ |
| @@ -2310,8 +2307,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 2310 | rename(fn, bfn); | 2307 | rename(fn, bfn); |
| 2311 | 2308 | ||
| 2312 | if ((f = fopen(fn, "w")) != NULL) { | 2309 | if ((f = fopen(fn, "w")) != NULL) { |
| 2313 | xs *j = xs_json_dumps_pp(snac.config, 4); | 2310 | xs_json_dump_pp(snac.config, 4, f); |
| 2314 | fwrite(j, strlen(j), 1, f); | ||
| 2315 | fclose(f); | 2311 | fclose(f); |
| 2316 | } | 2312 | } |
| 2317 | else | 2313 | else |