mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Filter out carriage returns in note post web interface.
This commit is contained in:
parent
862560947b
commit
f957be5e84
1 changed files with 4 additions and 3 deletions
7
html.c
7
html.c
|
@ -982,10 +982,11 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
|
|||
}
|
||||
|
||||
if (content != NULL) {
|
||||
xs *msg = NULL;
|
||||
xs *c_msg = NULL;
|
||||
xs *msg = NULL;
|
||||
xs *c_msg = NULL;
|
||||
xs *content_2 = xs_replace(content, "\r", "");
|
||||
|
||||
msg = msg_note(&snac, content, NULL, in_reply_to, attach_list);
|
||||
msg = msg_note(&snac, content_2, NULL, in_reply_to, attach_list);
|
||||
|
||||
c_msg = msg_create(&snac, msg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue