From 1b0d53fa23240e90b61d19d621e4462934efb482 Mon Sep 17 00:00:00 2001 From: oes Date: Mon, 23 Jul 2001 13:40:12 +0000 Subject: [PATCH] Fixed bug that caused document body to be dropped when pcrs joblist was empty. --- filters.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/filters.c b/filters.c index cc06229d..c1ed95d8 100644 --- a/filters.c +++ b/filters.c @@ -1,7 +1,7 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.21 2001/07/13 13:59:53 oes Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.22 2001/07/18 12:29:34 oes Exp $"; /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ + * File : $Source: /cvsroot/ijbswa//current/filters.c,v $ * * Purpose : Declares functions to parse/crunch headers and pages. * Functions declared include: @@ -38,6 +38,11 @@ const char filters_rcs[] = "$Id: filters.c,v 1.21 2001/07/13 13:59:53 oes Exp $" * * Revisions : * $Log: filters.c,v $ + * Revision 1.22 2001/07/18 12:29:34 oes + * - Made gif_deanimate_response respect + * csp->action->string[ACTION_STRING_DEANIMATE] + * - Logging cosmetics + * * Revision 1.21 2001/07/13 13:59:53 oes * - Introduced gif_deanimate_response which shares the * generic content modification interface of pcrs_filter_response @@ -917,6 +922,12 @@ char *pcrs_filter_response(struct client_state *csp) return(NULL); } + if ( NULL == b->joblist ) + { + log_error(LOG_LEVEL_RE_FILTER, "Empty joblist. Nothing to do."); + return(NULL); + } + log_error(LOG_LEVEL_RE_FILTER, "re_filtering %s%s (size %d) ...", csp->http->hostport, csp->http->path, size); -- 2.39.2