Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84DF8DB44 for ; Tue, 14 Aug 2012 21:15:21 +0000 (UTC) Received: (qmail 16061 invoked by uid 500); 14 Aug 2012 21:15:21 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 15933 invoked by uid 500); 14 Aug 2012 21:15:21 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 15923 invoked by uid 99); 14 Aug 2012 21:15:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 21:15:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 21:15:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0AF342388962; Tue, 14 Aug 2012 21:14:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1373115 - in /httpd/httpd/branches/2.4.x: ./ CHANGES STATUS modules/cache/mod_cache.c Date: Tue, 14 Aug 2012 21:14:34 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120814211435.0AF342388962@eris.apache.org> Author: jim Date: Tue Aug 14 21:14:34 2012 New Revision: 1373115 URL: http://svn.apache.org/viewvc?rev=1373115&view=rev Log: Editors choice on CHANGES Merge r1361153 from trunk: * Set content type in case we return stale content. Submitted by: rpluem Reviewed/backported by: jim Modified: httpd/httpd/branches/2.4.x/ (props changed) httpd/httpd/branches/2.4.x/CHANGES httpd/httpd/branches/2.4.x/STATUS httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c Propchange: httpd/httpd/branches/2.4.x/ ------------------------------------------------------------------------------ Merged /httpd/httpd/trunk:r1361153 Modified: httpd/httpd/branches/2.4.x/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/CHANGES?rev=1373115&r1=1373114&r2=1373115&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/CHANGES [utf-8] (original) +++ httpd/httpd/branches/2.4.x/CHANGES [utf-8] Tue Aug 14 21:14:34 2012 @@ -7,6 +7,9 @@ Changes with Apache 2.4.3 possible XSS for a site where untrusted users can upload files to a location with MultiViews enabled. [Niels Heinen ] + *) mod_cache: Set content type in case we return stale content. + [Ruediger Pluem] + *) Windows: Fix SSL failures on windows with AcceptFilter https none. PR: 52476. [Jeff Trawick] Modified: httpd/httpd/branches/2.4.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?rev=1373115&r1=1373114&r2=1373115&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/STATUS (original) +++ httpd/httpd/branches/2.4.x/STATUS Tue Aug 14 21:14:34 2012 @@ -88,11 +88,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_cache: Set content type in case we return stale content. - trunk patch: http://svn.apache.org/viewvc?view=rev&rev=1361153 - 2.4.x patch: trunk patch works - +1: rjung, humbedooh, trawick (needs CHANGES entry) - -0: What should CHANGES say??? PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] Modified: httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c?rev=1373115&r1=1373114&r2=1373115&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c (original) +++ httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c Tue Aug 14 21:14:34 2012 @@ -1655,6 +1655,9 @@ static void cache_insert_error_filter(re r->err_headers_out = cache->stale_handle->resp_hdrs; + ap_set_content_type(r, apr_table_get( + cache->stale_handle->resp_hdrs, "Content-Type")); + /* add a revalidation warning */ warn_head = apr_table_get(r->err_headers_out, "Warning"); if ((warn_head == NULL) || ((warn_head != NULL)