diff options
| author | 2022-10-28 18:06:42 +0200 | |
|---|---|---|
| committer | 2022-10-28 18:06:42 +0200 | |
| commit | 5ee9504b1801f106f152ef9d60620ad88454d390 (patch) | |
| tree | 8974400798b1a30c2b07cdebb6f6b8d4c7d8ccc1 /snac.h | |
| parent | Updated TODO. (diff) | |
| download | snac2-5ee9504b1801f106f152ef9d60620ad88454d390.tar.gz snac2-5ee9504b1801f106f152ef9d60620ad88454d390.tar.xz snac2-5ee9504b1801f106f152ef9d60620ad88454d390.zip | |
Be more aggressive in HTML sanitization.
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -134,6 +134,8 @@ int activitypub_post_handler(d_char *req, char *q_path, | |||
| 134 | char **body, int *b_size, char **ctype); | 134 | char **body, int *b_size, char **ctype); |
| 135 | 135 | ||
| 136 | d_char *not_really_markdown(char *content, d_char **f_content); | 136 | d_char *not_really_markdown(char *content, d_char **f_content); |
| 137 | d_char *sanitize(d_char *str); | ||
| 138 | |||
| 137 | int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype); | 139 | int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype); |
| 138 | int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | 140 | int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, |
| 139 | char **body, int *b_size, char **ctype); | 141 | char **body, int *b_size, char **ctype); |