From ab84df2cbdd922af1811185fe17370a19b070ae8 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 22 Jun 2009 16:28:18 +0000 Subject: [PATCH] * Noted where I need to make some fixes --- webcit/auth.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webcit/auth.c b/webcit/auth.c index 663f3d246..d34038584 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -775,10 +775,22 @@ void display_reg(int during_login) do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, "do_welcome", USERCONFIGROOM); } else { + StrBuf *ReturnTo; + ReturnTo = NewStrBufPlain("display_main_menu?gotofirst=", 256); + //StrBufUrlescAppend(ReturnTo, WC->wc_roomname, NULL); + StrEscAppend(ReturnTo, WC->wc_roomname, NULL, 0, 0); + lprintf(9, "wc_roomname: %s\n", ChrPtr(WC->wc_roomname)); + lprintf(9, " ReturnTo: %s\n", ChrPtr(ReturnTo)); + FreeStrBuf(&ReturnTo); do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, "display_main_menu", USERCONFIGROOM); } - /* FIXME don't we have to free VCMsg and VCAtt ?? */ + /* + FIXME + 1. don't we have to free VCMsg and VCAtt ?? + 2. Fix bug 268 + */ + } -- 2.30.2