internal redirect, we must set r->uri to "", not a bogus
string, and not NULL. [Ryan Bloom]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90929
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.26-dev
+ *) Fix a seg fault in mod_include. When we are generating an
+ internal redirect, we must set r->uri to "", not a bogus
+ string, and not NULL. [Ryan Bloom]
+
*) Optimized location_walk, so subrequests, redirects and second passes
now reuse previous section merges on a <Location > by <Location >
basis, until we mismatch with the original location_walk.
* but it's actually sometimes to impossible to do it... because the
* file may not have a uri associated with it -djg
*/
- rnew->uri = "INTERNALLY GENERATED file-relative req";
+ rnew->uri = apr_pstrdup(rnew->pool, "");
#if 0 /* XXX When this is reenabled, the cache triggers need to be set to faux
* dir_walk/file_walk values.
int l;
if (last_slash == NULL) {
- return NULL;
+ return apr_pstrdup(p, "");
}
l = (last_slash - s) + 1;
d = apr_palloc(p, l + 1);