trunk patch: http://svn.apache.org/viewvc?view=revision&revision=
1386576
http://svn.apache.org/viewvc?view=revision&revision=
1386578
2.4.x patch: trunk patch works
+1: jim, druggeri, minfrin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1393199 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.4
+ *) mod_proxy: When concatting for PPR, avoid cases where we
+ concat ".../" and "/..." to create "...//..." [Jim Jagielski]
+
*) mod_cache: Wrong content type and character set when
mod_cache serves stale content because of a proxy error.
PR 53539. [Rainer Jung, Ruediger Pluem]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_proxy: Avoid double slash with "ProxyPassReverse / ..." cases
- trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1386576
- http://svn.apache.org/viewvc?view=revision&revision=1386578
- 2.4.x patch: trunk patch works
- +1: jim, druggeri, minfrin
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
}
}
else if (l1 >= l2 && strncasecmp((*worker)->s->name, url, l2) == 0) {
- u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
+ /* edge case where fake is just "/"... avoid double slash */
+ if ((ent[i].fake[0] == '/') && (ent[i].fake[1] == 0) && (url[l2] == '/')) {
+ u = apr_pstrdup(r->pool, &url[l2]);
+ } else {
+ u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
+ }
return ap_is_url(u) ? u : ap_construct_url(r->pool, u, r);
}
worker++;