diff options
| author | 2022-11-01 19:32:42 +0100 | |
|---|---|---|
| committer | 2022-11-01 19:32:42 +0100 | |
| commit | f957be5e842c1100cb377a91c2e3455f7288c99d (patch) | |
| tree | 40cd2e0a211e0acaf38655d6afbe742c2b7e0212 /html.c | |
| parent | Added missing user_free() when auth is needed. (diff) | |
| download | snac2-f957be5e842c1100cb377a91c2e3455f7288c99d.tar.gz snac2-f957be5e842c1100cb377a91c2e3455f7288c99d.tar.xz snac2-f957be5e842c1100cb377a91c2e3455f7288c99d.zip | |
Filter out carriage returns in note post web interface.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -982,10 +982,11 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 982 | } | 982 | } |
| 983 | 983 | ||
| 984 | if (content != NULL) { | 984 | if (content != NULL) { |
| 985 | xs *msg = NULL; | 985 | xs *msg = NULL; |
| 986 | xs *c_msg = NULL; | 986 | xs *c_msg = NULL; |
| 987 | xs *content_2 = xs_replace(content, "\r", ""); | ||
| 987 | 988 | ||
| 988 | msg = msg_note(&snac, content, NULL, in_reply_to, attach_list); | 989 | msg = msg_note(&snac, content_2, NULL, in_reply_to, attach_list); |
| 989 | 990 | ||
| 990 | c_msg = msg_create(&snac, msg); | 991 | c_msg = msg_create(&snac, msg); |
| 991 | 992 | ||