diff options
author | Stas Bekman <stas@apache.org> | 2004-08-20 22:58:49 +0200 |
---|---|---|
committer | Stas Bekman <stas@apache.org> | 2004-08-20 22:58:49 +0200 |
commit | 0226c056ec34b508a1b7114175ea2b62b18db32f (patch) | |
tree | 14688287d43f9080f7829852e196e2fa6a452402 /server | |
parent | sync (diff) | |
download | apache2-0226c056ec34b508a1b7114175ea2b62b18db32f.tar.xz apache2-0226c056ec34b508a1b7114175ea2b62b18db32f.zip |
use more intuitive variable names
ap_sub_req_*_uri to use new_uri
ap_sub_req_*_file to use new_file
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/request.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/request.c b/server/request.c index 9d5ca67f9e..9ed5ccbdde 100644 --- a/server/request.c +++ b/server/request.c @@ -1575,7 +1575,7 @@ AP_DECLARE(int) ap_some_auth_required(request_rec *r) AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method, - const char *new_file, + const char *new_uri, const request_rec *r, ap_filter_t *next_filter) { @@ -1589,13 +1589,13 @@ AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method, rnew->method = method; rnew->method_number = ap_method_number_of(method); - if (new_file[0] == '/') { - ap_parse_uri(rnew, new_file); + if (new_uri[0] == '/') { + ap_parse_uri(rnew, new_uri); } else { udir = ap_make_dirstr_parent(rnew->pool, r->uri); udir = ap_escape_uri(rnew->pool, udir); /* re-escape it */ - ap_parse_uri(rnew, ap_make_full_path(rnew->pool, udir, new_file)); + ap_parse_uri(rnew, ap_make_full_path(rnew->pool, udir, new_uri)); } /* We cannot return NULL without violating the API. So just turn this @@ -1620,11 +1620,11 @@ AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method, return rnew; } -AP_DECLARE(request_rec *) ap_sub_req_lookup_uri(const char *new_file, +AP_DECLARE(request_rec *) ap_sub_req_lookup_uri(const char *new_uri, const request_rec *r, ap_filter_t *next_filter) { - return ap_sub_req_method_uri("GET", new_file, r, next_filter); + return ap_sub_req_method_uri("GET", new_uri, r, next_filter); } AP_DECLARE(request_rec *) ap_sub_req_lookup_dirent(const apr_finfo_t *dirent, |