made to ap_escape_html so we escape quotes. Reported by JPCERT.
[Mark Cox]
+ *) mod_disk_cache: Return the correct error codes from bucket read
+ failures, instead of APR_EGENERAL.
+ [Brian Akins <brian.akins turner.com>]
+
*) Add APR/APR-Util Compiled and Runtime Version numbers to the
output of 'httpd -V'. [William Rowe]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_disk_cache: Return correct error codes, instead of APR_EGENERAL.
- Trunk version of patch:
- http://svn.apache.org/viewcvs?rev=389697&view=rev
- http://svn.apache.org/viewcvs?rev=390499&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, pquerna, rooneg
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* mod_dbd: When threaded, create a private pool in child_init
{
const char *str;
apr_size_t length, written;
- apr_bucket_read(e, &str, &length, APR_BLOCK_READ);
+ rv = apr_bucket_read(e, &str, &length, APR_BLOCK_READ);
+ if (rv != APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
+ "cache_disk: Error when reading bucket for URL %s",
+ h->cache_obj->key);
+ /* Remove the intermediate cache file and return non-APR_SUCCESS */
+ file_cache_errorcleanup(dobj, r);
+ return rv;
+ }
rv = apr_file_write_full(dobj->tfd, str, length, &written);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
h->cache_obj->key);
/* Remove the intermediate cache file and return non-APR_SUCCESS */
file_cache_errorcleanup(dobj, r);
- return APR_EGENERAL;
+ return rv;
}
dobj->file_size += written;
if (dobj->file_size > conf->maxfs) {