X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Froomops.c;h=41da33ceb40cdc1ef72e79bf4e350df61067fb30;hp=442d167ac5b7e086d4a35f6e301110a2bb293330;hb=1f494963f66495189901c38c84cbc6d6b3e9f952;hpb=ee0a4e4dac7fdedf8a92d962061c6e97cef6c690 diff --git a/webcit/roomops.c b/webcit/roomops.c index 442d167ac..41da33ceb 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -472,6 +472,7 @@ void embed_search_o_matic(StrBuf *Target, WCTemplputParams *TP) */ void embed_room_banner(char *got, int navbar_style) { + wcsession *WCC = WC; char buf[256]; char buf2[1024]; char with_files[256]; @@ -501,9 +502,9 @@ void embed_room_banner(char *got, int navbar_style) { * we want it to remember the URL as a "/dotskip" one instead of * a "skip" or "gotonext" or something like that. */ - if (WC->this_page == NULL) - WC->this_page = NewStrBuf(); - StrBufPrintf(WC->this_page, + if (WCC->Hdr->this_page == NULL) + WCC->Hdr->this_page = NewStrBuf(); + StrBufPrintf(WCC->Hdr->this_page, "dotskip&room=%s", ChrPtr(WC->wc_roomname)); @@ -1818,7 +1819,7 @@ void display_editroom(void) wprintf(_("The URL for subscribe/unsubscribe is: ")); wprintf("%s://%s/listsub\n", (is_https ? "https" : "http"), - ChrPtr(WC->http_host)); + ChrPtr(WC->Hdr->http_host)); /* Public posting? */ wprintf(""); wprintf(_("Allow non-subscribers to mail to this room.")); @@ -3312,7 +3313,7 @@ void set_floordiv_expanded(void) { StrBuf *FloorDiv; FloorDiv = NewStrBuf(); - StrBufAppendBuf(FloorDiv, WCC->UrlFragment2, 0); + StrBufExtract_token(FloorDiv, WCC->Hdr->ReqLine, 2, '/'); set_preference("floordiv_expanded", FloorDiv, 1); WCC->floordiv_expanded = FloorDiv; }