Fixed a bug in the new aliasing code that broke mail to rooms with spaces in their...
[citadel.git] / citadel / internet_addressing.c
index 2e1dd06b4adc4a60e8434f5f644d9524c05bdbb1..4292725868445f8148e7eec2fe1465c580f88251 100644 (file)
@@ -624,12 +624,12 @@ struct recptypes *validate_recipients(char *supplied_recipients, const char *Rem
                                                if (!IsEmptyStr(ret->recp_room)) {
                                                        strcat(ret->recp_room, "|");
                                                }
-                                               strcat(ret->recp_room, &this_recp[5]);
+                                               strcat(ret->recp_room, CC->room.QRname);
        
                                                if (!IsEmptyStr(ret->recp_orgroom)) {
                                                        strcat(ret->recp_orgroom, "|");
                                                }
-                                               strcat(ret->recp_orgroom, org_recp);
+                                               strcat(ret->recp_orgroom, this_recp);
        
                                        }
                                }