From: Ryan Bloom Date: Tue, 28 May 2002 23:14:15 +0000 (+0000) Subject: Fix http redirecting for UserDir. Before this patch, the directive: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8c396ec08e33b779f2641e52e625d7cf6f396be;p=apache 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 --- diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c index 19408ee0c8..9a29b35145 100644 --- a/modules/mappers/mod_userdir.c +++ b/modules/mappers/mod_userdir.c @@ -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; }