Changes with Apache 2.0.26-dev
+ *) Fix a segfault with mod_include when r->path_info is not set
+ (which is the case with mod_proxy). [Ian Holsman <ianh@cnet.com>]
+
*) Add -X functionality back. This indicates to all MPMs and any other
part of Apache that it should run in "debug" mode. [Justin Erenkrantz]
apr_table_setn(e, "LAST_MODIFIED",
ap_ht_time(r->pool, r->finfo.mtime, timefmt, 0));
apr_table_setn(e, "DOCUMENT_URI", r->uri);
- apr_table_setn(e, "DOCUMENT_PATH_INFO", r->path_info);
+ if (r->path_info && *r->path_info) {
+ apr_table_setn(e, "DOCUMENT_PATH_INFO", r->path_info);
+ }
if (apr_get_username(&pwname, r->finfo.user, r->pool) == APR_SUCCESS) {
apr_table_setn(e, "USER_NAME", pwname);
}