Commit 5fa72ad7 authored by Nick Kew's avatar Nick Kew
Browse files

PR#35314: Enable path components in Redirect


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@490142 13f79535-47bb-0310-9956-ffa450edef68
parent 989a99a1
Loading
Loading
Loading
Loading
+4 −1
Changes for modules/mappers/mod_alias.c: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -204,7 +204,10 @@ static const char *add_redirect_internal(cmd_parms *cmd,
    if (ap_is_HTTP_REDIRECT(status)) {
        if (!url)
            return "URL to redirect to is missing";
        if (!use_regex && !ap_is_url(url))
        /* PR#35314: we can allow path components here;
         * they get correctly resolved to full URLs.
         */
        if (!use_regex && !ap_is_url(url) && (url[0] != '/'))
            return "Redirect to non-URL";
    }
    else {