X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=filters.c;h=07830c3db9490edfea7151fa3ee384b192631665;hb=358601f7ad1aa1ad97dce91261e584c65296ab64;hp=91c985490b4fc26b7b827c2f678ce7b71ef887b3;hpb=9476a25ff5683725af2d86a83735395208e4d961;p=privoxy.git diff --git a/filters.c b/filters.c index 91c98549..07830c3d 100644 --- a/filters.c +++ b/filters.c @@ -1277,19 +1277,7 @@ struct http_response *redirect_url(struct client_state *csp) new_url = get_last_url(old_url, redirect_mode); freez(old_url); } - - /* - * Disable redirect checkers, so that they - * will be only run more than once if the user - * also enables them through tags. - * - * From a performance point of view - * it doesn't matter, but the duplicated - * log messages are annoying. - */ - csp->action->flags &= ~ACTION_FAST_REDIRECTS; #endif /* def FEATURE_FAST_REDIRECTS */ - csp->action->flags &= ~ACTION_REDIRECT; /* Did any redirect action trigger? */ if (new_url) @@ -1705,8 +1693,8 @@ static char *pcrs_filter_impl(const struct client_state *csp, int filter_respons } else { - log_error(LOG_LEVEL_RE_FILTER, - "filtering client %s request body (size %lu) with \'%s\' produced %d hits (new size %lu).", + log_error(LOG_LEVEL_RE_FILTER, "filtering request body from client %s " + "(size %lu) with \'%s\' produced %d hits (new size %lu).", csp->ip_addr_str, prev_size, b->name, current_hits, size); } #ifdef FEATURE_EXTENDED_STATISTICS @@ -2192,7 +2180,9 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size) */ if (NULL == (from_p = strstr(from_p, "\r\n"))) { - log_error(LOG_LEVEL_ERROR, "Parse error while stripping \"chunked\" transfer coding"); + log_error(LOG_LEVEL_ERROR, + "Failed to strip \"chunked\" transfer coding. " + "Line with chunk size doesn't seem to end properly."); return JB_ERR_PARSE; } from_p += 2; @@ -2207,7 +2197,8 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size) if (from_p + chunksize >= end_of_buffer) { log_error(LOG_LEVEL_ERROR, - "End of chunk is beyond the end of the buffer."); + "Failed to decode content for filtering. " + "One chunk end is beyond the end of the buffer."); return JB_ERR_PARSE; }