int am_has_header(request_rec *r, const char *h, const char *v)
{
    return (am_get_header_attr(r, h, v, NULL) != NULL);
}

The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.