]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
Fixed bug 301. /listsub operations do not require a
[citadel.git] / webcit / webcit.c
index e5b064934d1f9e4f3fbfccb65330a0fcea0ba6eb..c65fd7f3ddeaea800ab6dd787f16c3032216c3c7 100644 (file)
@@ -739,7 +739,9 @@ void output_image()
                 * Instead of an ugly 404, send a 1x1 transparent GIF
                 * when there's no such image on the server.
                 */
-               output_static("static/blank.gif");
+               char blank_gif[SIZ];
+               snprintf (blank_gif, SIZ, "%s%s", static_dirs[0], "/blank.gif");
+               output_static(blank_gif);
        }
 
 
@@ -1308,7 +1310,7 @@ void session_loop(struct httprequest *req)
                        wprintf("HTTP/1.1 404 Security check failed\r\n");
                        wprintf("Content-Type: text/plain\r\n");
                        wprintf("\r\n");
-                       wprintf("Security check failed.\r\n");
+                       wprintf("You have sent a malformed or invalid request.\r\n");
                }
                goto SKIP_ALL_THIS_CRAP;        /* Don't try to connect */
        }