* return_to logic in do_edit_vcard() and submit_vcard() is now working peoperly....
authorArt Cancro <ajc@citadel.org>
Tue, 23 Jun 2009 15:07:27 +0000 (15:07 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 23 Jun 2009 15:07:27 +0000 (15:07 +0000)
webcit/auth.c
webcit/vcard_edit.c

index 1ac3921c423dcd416838b810c171b7676f1e6946..2c5c1d04a155e4ef61a26539847827670fc1d762 100644 (file)
@@ -778,18 +778,11 @@ void display_reg(int during_login)
                StrBuf *ReturnTo;
                ReturnTo = NewStrBufPlain(HKEY("display_main_menu?gotofirst="));
                StrBufAppendBuf(ReturnTo, WC->wc_roomname, 0);
-               lprintf(9, "\e[32mwc_roomname: %s\e[0m\n", ChrPtr(WC->wc_roomname));
-               lprintf(9, "\e[31m   ReturnTo: %s\e[0m\n", ChrPtr(ReturnTo));
                do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, ChrPtr(ReturnTo), USERCONFIGROOM);
                FreeStrBuf(&ReturnTo);
        }
 
-       /*
-               FIXME
-               1. don't we have to free VCMsg and VCAtt ??
-               2. Fix bug 268
-       */
-
+       /* FIXME - don't we have to free VCMsg and VCAtt ?? */
 }
 
 
index 4b3940fb247bbf7d8a470ae8fdd1e273cc042b08..b690e01cc383928c9f14edfb9d74a6bf7192ac38 100644 (file)
@@ -1026,7 +1026,7 @@ void do_edit_vcard(long msgnum, char *partnum,
        wprintf("\">\n");
 
        wprintf("<input type=\"hidden\" name=\"return_to\" value=\"");
-       urlescputs(return_to);
+       escputs(return_to);
        wprintf("\">\n");
 
        wprintf("<div class=\"buttons\">\n"