From: Art Cancro Date: Mon, 31 May 2004 21:43:27 +0000 (+0000) Subject: * Added "|END" to the session cookie before base64-ing it. This fixes a X-Git-Tag: v7.86~5418 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0198a9061636b17b95f087800608ea8bcb1d59ee * Added "|END" to the session cookie before base64-ing it. This fixes a problem with certain room names causing the webserver to freak out and break embedded images and stuff. I don't know why. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index a81b38814..c16faa955 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,9 @@ $Log$ +Revision 510.6 2004/05/31 21:43:27 ajc +* Added "|END" to the session cookie before base64-ing it. This fixes a + problem with certain room names causing the webserver to freak out and + break embedded images and stuff. I don't know why. + Revision 510.5 2004/05/31 20:34:11 ajc * Message entry using Kevin Roth's excellent cross-platform richtext editing script. @@ -1825,4 +1830,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/cookie_conversion.c b/webcit/cookie_conversion.c index 5c35d378c..22f0a7d6f 100644 --- a/webcit/cookie_conversion.c +++ b/webcit/cookie_conversion.c @@ -32,7 +32,7 @@ void stuff_to_cookie(char *cookie, int session, char *user, char *pass, char *ro { char buf[SIZ]; - sprintf(buf, "%d|%s|%s|%s", session, user, pass, room); + sprintf(buf, "%d|%s|%s|%s|END", session, user, pass, room); CtdlEncodeBase64(cookie, buf, strlen(buf)); } diff --git a/webcit/messages.c b/webcit/messages.c index fbb15c96b..fc02aa183 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1557,7 +1557,8 @@ void display_enter(void) } /* Now offer the ability to attach additional files... */ - wprintf("Attach file: \n  " "\n");