Commit a8c396ec authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Fix http redirecting for UserDir. Before this patch, the directive:

UserDir http://www.foo.com/~*/

The code would ignore the http:// and instead use the user's home directory


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95329 13f79535-47bb-0310-9956-ffa450edef68
parent c1f6bd94
Loading
Loading
Loading
Loading
+2 −2
Changes for modules/mappers/mod_userdir.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -317,8 +317,8 @@ static int translate_userdir(request_rec *r)
            else
                filename = apr_pstrcat(r->pool, userdir, "/", w, NULL);
        }
        else if (ap_strchr_c(userdir, ':')) {
            redirect = apr_pstrcat(r->pool, userdir, "/", w, dname, NULL);
        else if (ap_strchr_c(x, ':')) {
            redirect = apr_pstrcat(r->pool, x, w, dname, NULL);
            apr_table_setn(r->headers_out, "Location", redirect);
            return HTTP_MOVED_TEMPORARILY;
        }