MCPcopy Create free account
hub / github.com/apache/httpd / unescape_func

Function unescape_func

server/util_expr_eval.c:1178–1190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1176}
1177
1178static const char *unescape_func(ap_expr_eval_ctx_t *ctx, const void *data,
1179 const char *arg)
1180{
1181 char *result = apr_pstrdup(ctx->p, arg);
1182 int ret = ap_unescape_url_keep2f(result, 0);
1183 if (ret == OK)
1184 return result;
1185 ap_log_rerror(LOG_MARK(ctx->info), APLOG_DEBUG, 0, ctx->r, APLOGNO(00538)
1186 "%s %% escape in unescape('%s') at %s:%d",
1187 ret == HTTP_BAD_REQUEST ? "Bad" : "Forbidden", arg,
1188 ctx->info->filename, ctx->info->line_number);
1189 return "";
1190}
1191
1192static int op_nz(ap_expr_eval_ctx_t *ctx, const void *data, const char *arg)
1193{

Callers

nothing calls this directly

Calls 1

ap_unescape_url_keep2fFunction · 0.85

Tested by

no test coverage detected