[Remove entries to the current 2.0 section below, when backported]
+ *) mod_dav: Disallow requests with an unescaped hash character in
+ the Request-URI. PR 21779. Amit Athavale <amit_athavale lycos.com>
+
*) Add forensic logging module (mod_log_forensic).
[Ben Laurie]
if (strcmp(r->handler, DAV_HANDLER_NAME) != 0)
return DECLINED;
+ /* Reject requests with an unescaped hash character, as these may
+ * be more destructive than the user intended. */
+ if (r->parsed_uri.fragment != NULL) {
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
+ "buggy client used un-escaped hash in Request-URI");
+ return dav_error_response(r, HTTP_BAD_REQUEST,
+ "The request was invalid: the URI included "
+ "an un-escaped hash character");
+ }
+
/* ### do we need to do anything with r->proxyreq ?? */
/*