#include <stdarg.h>
#include <stddef.h>
#include "webcit.h"
-#include "webserver.h"
+
unsigned char OnePixelGif[37] = {
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x01, 0x00,
int len;
const char *Err;
char what[SIZ];
- snprintf(what, sizeof what, "./%s/%s", prefix, (char *)ChrPtr(WC->Hdr->HR.ReqLine));
+ if (prefix==NULL) {
+ // Force blank.gif Overrides the request line.
+ strcpy(what,"./static/webcit_icons/blank.gif");
+ } else {
+ snprintf(what, sizeof what, "./%s/%s", prefix, (char *)ChrPtr(WC->Hdr->HR.ReqLine));
+ }
syslog(LOG_DEBUG, "output_static(%s)", what);
len = strlen (what);