PR 56603: Inappropiate ProxyPassReverse match when interpolated URL
is empty string
Submitted By: <ajprout hotmail.com>
Committed By: covener
Submitted by: covener
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1651094 13f79535-47bb-0310-9956-
ffa450edef68
request headers earlier. Adds "MergeTrailers" directive to restore
legacy behavior. [Edward Lu, Yann Ylavic, Joe Orton, Eric Covener]
+ *) mod_proxy: Prevent ProxyPassReverse from doing a substitution when
+ the URL parameter interpolates to an empty string. PR 56603.
+ [<ajprout hotmail.com>]
+
*) core: Fix -D[efined] or <Define>[d] variables lifetime accross restarts.
PR 57328. [Armin Abfalterer <a.abfalterer gmail.com>, Yann Ylavic].
2.4.x patch: https://issues.apache.org/bugzilla/attachment.cgi?id=32209
+1: druggeri, gsmith, rjung
- * mod_proxy: Inappropiate ProxyPassReverse match when interpolated URL is
- empty string. PR56603
- trunk patch: http://svn.apache.org/r1648433
- 2.4.x patch: trunk works
- +1 covener, rjung, jim
-
* split-logfile: Fix perl strict refs error PR56329.
trunk patch: 1648719
2.4.x patch: trunks works
part = url;
}
}
- if (l1 >= l2 && strncasecmp(real, part, l2) == 0) {
+ if (l2 > 0 && l1 >= l2 && strncasecmp(real, part, l2) == 0) {
u = apr_pstrcat(r->pool, ent[i].fake, &part[l2], NULL);
return ap_is_url(u) ? u : ap_construct_url(r->pool, u, r);
}