suppress_check = ((controlcode & 0x08) >> 3);
cache = ((controlcode & 0x10) >> 4);
+
wprintf("HTTP/1.0 200 OK\n");
httpdate(httpnow, time(NULL));
if (print_standard_html_head > 0) {
wprintf("\n");
- if (refresh30) svprintf("REFRESHTAG", WCS_STRING,
- "<META HTTP-EQUIV=\"refresh\" CONTENT=\"30\">\n");
- else svprintf("REFRESHTAG", WCS_STRING,
- "<META HTTP-EQUIV=\"refresh\" CONTENT=\"500363689;\">\n");
+ if (refresh30) {
+ svprintf("REFRESHTAG", WCS_STRING, "%s",
+ "<META HTTP-EQUIV=\"refresh\" CONTENT=\"30\">\n");
+ }
+ else {
+ svprintf("REFRESHTAG", WCS_STRING, "%s",
+ "<META HTTP-EQUIV=\"refresh\" CONTENT=\"500363689;\">\n");
+ }
+
/* script for checking for pages (not always launched) */
sprintf(onload_fcn, "function onload_fcn() { \n");
);
/* end script */
-
do_template("head");
- clear_local_substs();
svprintf("extrabodyparms", WCS_STRING, "%s",
"onload='onload_fcn();' ");
do_template("background");
- clear_local_substs();
}
if (print_standard_html_head == 1) {
WC->upload_length = 0;
WC->upload = NULL;
+ WC->vars = NULL;
WC->is_wap = 0;
hptr = hptr->next;
if (!strncasecmp(buf, "Cookie: webcit=", 15)) {
- strcpy(cookie, &buf[15]);
+ safestrncpy(cookie, &buf[15], sizeof cookie);
cookie_to_stuff(cookie, NULL,
c_username, c_password, c_roomname);
}