mirror of
https://github.com/apache/httpd.git
synced 2025-11-05 05:30:39 +03:00
Style fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
12
modules/cache/cache_util.c
vendored
12
modules/cache/cache_util.c
vendored
@@ -48,7 +48,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
|
|||||||
if (url.scheme || url.hostname) {
|
if (url.scheme || url.hostname) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
/* The URI scheme must be present and identical except for case. */
|
/* The URI scheme must be present and identical except for case. */
|
||||||
if (!url.scheme || strcasecmp(filter.scheme, url.scheme)) {
|
if (!url.scheme || strcasecmp(filter.scheme, url.scheme)) {
|
||||||
return 0;
|
return 0;
|
||||||
@@ -69,7 +70,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
|
|||||||
url.hostname + uhostlen - fhostlen)) {
|
url.hostname + uhostlen - fhostlen)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else if (filter.hostname[0] == '*') {
|
}
|
||||||
|
else if (filter.hostname[0] == '*') {
|
||||||
const size_t fhostlen = strlen(filter.hostname + 1);
|
const size_t fhostlen = strlen(filter.hostname + 1);
|
||||||
const size_t uhostlen = url.hostname ? strlen(url.hostname) : 0;
|
const size_t uhostlen = url.hostname ? strlen(url.hostname) : 0;
|
||||||
|
|
||||||
@@ -77,7 +79,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
|
|||||||
url.hostname + uhostlen - fhostlen)) {
|
url.hostname + uhostlen - fhostlen)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
|
}
|
||||||
|
else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -105,7 +108,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
|
|||||||
if (!url.path) {
|
if (!url.path) {
|
||||||
if (*filter.path == '/' && pathlen == 1) {
|
if (*filter.path == '/' && pathlen == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user