From: Art Cancro Date: Fri, 5 Nov 2021 21:54:06 +0000 (-0400) Subject: When sending MSGS commands, unescape the command being sent to the server X-Git-Tag: v940~9 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=58856c806bc8dc40bc2b8a3ea6c4e820c82eb62e;p=citadel.git When sending MSGS commands, unescape the command being sent to the server --- diff --git a/webcit-ng/room_functions.c b/webcit-ng/room_functions.c index 416066a85..338f034ad 100644 --- a/webcit-ng/room_functions.c +++ b/webcit-ng/room_functions.c @@ -113,20 +113,18 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c) { extract_token(buf, h->uri, 4, '/', sizeof buf); - if (!strncasecmp(buf, "msgs.", 5)) // Client is requesting a list of message numbers - { + if (!strncasecmp(buf, "msgs.", 5)) { // Client is requesting a list of message numbers + unescape_input(&buf[5]); json_msglist(h, c, &buf[5]); return; } #if 0 - if (!strncasecmp(buf, "threads", 5)) // Client is requesting a threaded view (still kind of fuzzy here) - { + if (!strncasecmp(buf, "threads", 5)) { // Client is requesting a threaded view (still kind of fuzzy here) threaded_view(h, c, &buf[5]); return; } - if (!strncasecmp(buf, "flat", 5)) // Client is requesting a flat view (still kind of fuzzy here) - { + if (!strncasecmp(buf, "flat", 5)) { // Client is requesting a flat view (still kind of fuzzy here) flat_view(h, c, &buf[5]); return; } diff --git a/webcit-ng/static/js/views.js b/webcit-ng/static/js/views.js index 6abac8251..f4d8e220d 100644 --- a/webcit-ng/static/js/views.js +++ b/webcit-ng/static/js/views.js @@ -167,7 +167,6 @@ function forum_render_one(div, msgnum, scroll_to) { + "" // end avatar + "
" // begin content + "
" // end header - + "
" // begin body + msg.text + "
" // end body @@ -210,4 +204,3 @@ function forum_render_one(div, msgnum, scroll_to) { } fetch_message(); } -