Changes with Apache 2.0.49
+ *) mod_dav: Reject requests which include an unescaped fragment in the
+ Request-URI. PR 21779. [Amit Athavale <amit_athavale lycos.com>]
+
*) Build array of allowed methods with proper dimensions, fixing
possible memory corruption. [Jeff Trawick]
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 ?? */
/*