Hi Joe,
On 08/17/2012 05:00 PM CEST +02:00, Joe Orton wrote:
> On Fri, Aug 17, 2012 at 04:53:54PM +0200, Micha Lenk wrote:
>> as you are apparently not subscribed to Bugzilla PR 51489, I am
>> answering to your comment on that PR via mail. Please apologize in case
>> you now got my answer twice.
>
> Thanks Micha, I get the bug mail via bugs@, but no problem. I've
> reverted the CHANGES entry again!
Thanks.
@everybody: What about applying and committing the new suggested fix
(see attachment)? It is based on branch httpd-2.4.x, SVN rev. 1374290.
Regards,
Micha
Index: modules/proxy/proxy_util.c
===================================================================
--- modules/proxy/proxy_util.c (revision 1374290)
+++ modules/proxy/proxy_util.c (working copy)
@@ -895,6 +895,8 @@
}
else if (l1 >= l2 && strncasecmp((*worker)->s->name, url, l2) == 0) {
u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
+ if ((ent[i].fake[0] == '/') && (ent[i].fake[1] == 0) && (url[l2] == '/'))
+ u++;
return ap_is_url(u) ? u : ap_construct_url(r->pool, u, r);
}
worker++;