made to ap_escape_html so we escape quotes. Reported by JPCERT.
[Mark Cox]
+ *) core: Reject invalid Expect header immediately. PR 38123.
+ [Ruediger Pluem]
+
*) Fix mis-shifted 32 bit scope, masked to 64 bits as a method.
[Will Rowe, Joe Orton]
-0: niq: Please explain why return value of ap_pass_brigade is
put into a variable and immediately discarded.
- * core: Fix PR38123 (Invalid Expect header not immediately rejected)
- Trunk version of patch:
- http://svn.apache.org/viewcvs.cgi?rev=370172&view=rev
- http://svn.apache.org/viewcvs.cgi?rev=371132&view=rev
- Backport version for 2.2.x of patch:
- http://issues.apache.org/bugzilla/attachment.cgi?id=17481
- +1: rpluem, niq, jerenkrantz
- NOTE: this also supersedes previous fix to PR#37790
-
* mod_ldap: Fix a race condition when creating the connection pool mutex
and make sure that memory is being allocated from the correct pools
when connections are being established. Enforce the GLOBAL_ONLY
"(see RFC2616 section 14.23): %s", r->uri);
}
+ /*
+ * Add the HTTP_IN filter here to ensure that ap_discard_request_body
+ * called by ap_die and by ap_send_error_response works correctly on
+ * status codes that do not cause the connection to be dropped and
+ * in situations where the connection should be kept alive.
+ */
+
+ ap_add_input_filter_handle(ap_http_input_filter_handle,
+ NULL, r, r->connection);
+
if (r->status != HTTP_OK) {
ap_send_error_response(r, 0);
ap_update_child_status(conn->sbh, SERVER_BUSY_LOG, r);
}
if ((access_status = ap_run_post_read_request(r))) {
- ap_add_input_filter_handle(ap_http_input_filter_handle,
- NULL, r, r->connection);
ap_die(access_status, r);
ap_update_child_status(conn->sbh, SERVER_BUSY_LOG, r);
ap_run_log_transaction(r);
}
}
- ap_add_input_filter_handle(ap_http_input_filter_handle,
- NULL, r, r->connection);
-
return r;
}