I committed a fix to the trunk. It'll appear in the next release, which I'll hopefully complete during
the next weeks.
With the following patch, requests with PATH_INFO correctly lead to 404s, unless the server is
configured explicitely to allow PATH_INFO. This follows the best practice that modules should respect
the default.
mod_mirrorbrain now no longer (falsely) behaves like mod_cgi*.
--- mod_mirrorbrain.c (revision 8042)
+++ mod_mirrorbrain.c (working copy)
@@ -1092,6 +1092,12 @@
return DECLINED;
}
+ /* is there PATH_INFO, and are we supposed to accept it? */
+ if ((r->path_info && *r->path_info)
+ && (r->used_path_info != AP_REQ_ACCEPT_PATH_INFO)) {
+ debugLog(r, cfg, "ignoring request with PATH_INFO");
+ return DECLINED;
+ }
debugLog(r, cfg, "URI: '%s'", r->unparsed_uri);
debugLog(r, cfg, "filename: '%s'", r->filename);
|