mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
We already have ap_str_tolower(), so also add ap_str_toupper() function and use
it where possible. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -831,13 +831,8 @@ static const char *tolower_func(ap_expr_eval_ctx_t *ctx, const void *data,
|
||||
static const char *toupper_func(ap_expr_eval_ctx_t *ctx, const void *data,
|
||||
const char *arg)
|
||||
{
|
||||
char *p;
|
||||
char *result = apr_pstrdup(ctx->p, arg);
|
||||
|
||||
for (p = result; *p; ++p) {
|
||||
*p = apr_toupper(*p);
|
||||
}
|
||||
|
||||
ap_str_toupper(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user