|
Line 0
Link Here
|
|
|
1 |
Index: modules/proxy/proxy_util.c |
| 2 |
=================================================================== |
| 3 |
--- modules/proxy/proxy_util.c (revision 893855) |
| 4 |
+++ modules/proxy/proxy_util.c (working copy) |
| 5 |
@@ -1117,6 +1117,16 @@ |
| 6 |
} |
| 7 |
else { |
| 8 |
l2 = strlen(real); |
| 9 |
+ if (real[0] == '/') { |
| 10 |
+ const char *part = strstr(url, "://"); |
| 11 |
+ if (part) { |
| 12 |
+ part = strstr(part+3, "/"); |
| 13 |
+ if (part) { |
| 14 |
+ url = part; |
| 15 |
+ l1 = strlen(url); |
| 16 |
+ } |
| 17 |
+ } |
| 18 |
+ } |
| 19 |
if (l1 >= l2 && strncasecmp(real, url, l2) == 0) { |
| 20 |
u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL); |
| 21 |
return ap_construct_url(r->pool, u, r); |