* Added "|END" to the session cookie before base64-ing it. This fixes a
authorArt Cancro <ajc@citadel.org>
Mon, 31 May 2004 21:43:27 +0000 (21:43 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 31 May 2004 21:43:27 +0000 (21:43 +0000)
  problem with certain room names causing the webserver to freak out and
  break embedded images and stuff.  I don't know why.

webcit/ChangeLog
webcit/cookie_conversion.c
webcit/messages.c

index a81b38814ccde4549e19264439f91af4b090c897..c16faa9551240d85234742600cddbe861ba65bfe 100644 (file)
@@ -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 <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 5c35d378ca743f2921e6b34799f71407e124e037..22f0a7d6f4e9bc87e84a063cb82295ab2fd10914 100644 (file)
@@ -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));
 }
 
index fbb15c96b23e45f344e18fa2b70b8bf3502c42b6..fc02aa1835b7a59fdb2728df52d6f59eb2ecede7 100644 (file)
@@ -1557,7 +1557,8 @@ void display_enter(void)
        }
 
        /* Now offer the ability to attach additional files... */
-       wprintf("Attach file: <input NAME=\"attachfile\" "
+       wprintf("&nbsp;&nbsp;&nbsp;"
+               "Attach file: <input NAME=\"attachfile\" "
                "SIZE=48 TYPE=\"file\">\n&nbsp;&nbsp;"
                "<input type=\"submit\" name=\"attach\" value=\"Add\">\n");