ASF Bugzilla – Attachment 22020 Details for
Bug 44803
Path info is decoded too soon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against trunk to mod_proxy_balancer
44803.diff (text/plain), 1.17 KB, created by
Ruediger Pluem
on 2008-05-27 14:29:19 UTC
(
hide
)
Description:
Patch against trunk to mod_proxy_balancer
Filename:
MIME Type:
Creator:
Ruediger Pluem
Created:
2008-05-27 14:29:19 UTC
Size:
1.17 KB
patch
obsolete
>Index: modules/proxy/mod_proxy_balancer.c >=================================================================== >--- modules/proxy/mod_proxy_balancer.c (Revision 660643) >+++ modules/proxy/mod_proxy_balancer.c (Arbeitskopie) >@@ -51,20 +51,17 @@ > return HTTP_BAD_REQUEST; > } > /* now parse path/search args, according to rfc1738 */ >- /* N.B. if this isn't a true proxy request, then the URL _path_ >- * has already been decoded. True proxy requests have r->uri >- * == r->unparsed_uri, and no others have that property. >- */ >- if (r->uri == r->unparsed_uri) { >- search = strchr(url, '?'); >- if (search != NULL) >- *(search++) = '\0'; >- } >- else >- search = r->args; >+ search = NULL; > > /* process path */ >- path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0, r->proxyreq); >+ if (apr_table_get(r->notes, "proxy-nocanon")) { >+ path = url; /* this is the raw path */ >+ } >+ else { >+ path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0, >+ r->proxyreq); >+ search = r->args; >+ } > if (path == NULL) > return HTTP_BAD_REQUEST; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44803
:
21826
|
21833
| 22020