$Log$
+Revision 625.18 2005/09/20 21:59:22 ajc
+* webcit.c: moved request_method[] out of the global scope (yikes!!!)
+* rss.c: removed "const" from function declarations to silence
+ a compiler warning
+
Revision 625.17 2005/09/19 02:56:21 ajc
* Two-pane mail reading now uses Ajax instead of a hidden iframe, and it's
very crisp and responsive.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
time_t if_modified_since;
-void display_rss_control(const char *reply_to, const char *subject)
+void display_rss_control(char *reply_to, char *subject)
{
wprintf("<div style=\"align: right;\"><p>\n");
wprintf("<a href=\"/display_enter?recp=");
}
-void display_rss(const char *roomname)
+void display_rss(char *roomname, char *request_method)
{
int nummsgs;
int a, b;
return;
}
- if (gotoroom(roomname)) {
+ if (gotoroom((char *)roomname)) {
lprintf(3, "RSS: Can't goto requested room\n");
wprintf("HTTP/1.1 404 Not Found\r\n");
wprintf("Content-Type: text/html\r\n");
#include "webserver.h"
#include "mime_parser.h"
-char request_method[128];
-
/*
* String to unset the cookie.
* Any date "in the past" will work, so I chose my birthday, right down to
char arg2[128];
char arg3[128];
char buf[SIZ];
+ char request_method[128];
int a, b;
int ContentLength = 0;
int BytesRead = 0;
/* This needs to run early */
if (!strcasecmp(action, "rss")) {
- display_rss(bstr("room"));
+ display_rss(bstr("room"), request_method);
goto SKIP_ALL_THIS_CRAP;
}
extern char *ctdlhost, *ctdlport;
extern char *server_cookie;
extern int is_https;
-extern char request_method[];
extern int setup_wizard;
extern char wizard_filename[];
extern time_t if_modified_since;
void commit_iconbar(void);
int CtdlDecodeQuotedPrintable(char *decoded, char *encoded, int sourcelen);
void spawn_another_worker_thread(void);
-void display_rss(const char *roomname);
+void display_rss(char *roomname, char *request_method);
void embed_room_banner(char *, int);
/* navbar types that can be passed to embed_room_banner */
const Bytef * source, uLong sourceLen, int level);
#endif
+#ifdef HAVE_ICONV
+void utf8ify_rfc822_string(char *buf);
+#endif
void begin_burst(void);
void end_burst(void);