* mod_rewrite: Preserve the query string when [proxy,noescape]
PR 45247
Submitted by: tdonovan
Reviewed by: rpluem, niq, tdonovan
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@683813
13f79535-47bb-0310-9956-
ffa450edef68
r->filename = apr_pstrcat(r->pool, r->filename,
r->path_info, NULL);
}
- if (r->args != NULL &&
- r->uri == r->unparsed_uri) {
+ if ((r->args != NULL)
+ && ((r->proxyreq == PROXYREQ_PROXY)
+ || (rulestatus == ACTION_NOESCAPE))) {
/* see proxy_http:proxy_http_canon() */
r->filename = apr_pstrcat(r->pool, r->filename,
"?", r->args, NULL);