mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -180,7 +180,7 @@ static int scgi_canon(request_rec *r, char *url)
|
||||
const char *err, *path;
|
||||
apr_port_t port, def_port;
|
||||
|
||||
if (strncasecmp(url, SCHEME "://", sizeof(SCHEME) + 2)) {
|
||||
if (ap_casecmpstrn(url, SCHEME "://", sizeof(SCHEME) + 2)) {
|
||||
return DECLINED;
|
||||
}
|
||||
url += sizeof(SCHEME); /* Keep slashes */
|
||||
@@ -434,7 +434,7 @@ static int pass_response(request_rec *r, proxy_conn_rec *conn)
|
||||
if (location && *location == '/') {
|
||||
scgi_request_config *req_conf = apr_palloc(r->pool,
|
||||
sizeof(*req_conf));
|
||||
if (strcasecmp(location_header, "Location")) {
|
||||
if (ap_casecmpstr(location_header, "Location")) {
|
||||
if (err) {
|
||||
apr_table_unset(r->err_headers_out, location_header);
|
||||
}
|
||||
@@ -533,7 +533,7 @@ static int scgi_handler(request_rec *r, proxy_worker *worker,
|
||||
apr_uri_t *uri = apr_palloc(r->pool, sizeof(*uri));
|
||||
char dummy;
|
||||
|
||||
if (strncasecmp(url, SCHEME "://", sizeof(SCHEME) + 2)) {
|
||||
if (ap_casecmpstrn(url, SCHEME "://", sizeof(SCHEME) + 2)) {
|
||||
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00865)
|
||||
"declining URL %s", url);
|
||||
return DECLINED;
|
||||
|
Reference in New Issue
Block a user