* search absolute for the images on the server.
authorWilfried Göesgens <willi@citadel.org>
Tue, 20 Nov 2007 22:35:30 +0000 (22:35 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 20 Nov 2007 22:35:30 +0000 (22:35 +0000)
webcit/webcit.c

index e5b064934d1f9e4f3fbfccb65330a0fcea0ba6eb..28cb08a1bcc2c5720c2085584b74fc6247db0f9f 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);
        }