]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/room_functions.c
When sending MSGS commands, unescape the command being sent to the server
[citadel.git] / webcit-ng / room_functions.c
index 416066a859a30fbbf9ab7ffeab6ae6ad47673c3d..338f034ad04d9fc69437a3e66f86c225dc060c41 100644 (file)
@@ -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;
        }