httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_userdir.c
Date Tue, 28 May 2002 23:14:15 GMT
rbb         02/05/28 16:14:15

  Modified:    modules/mappers mod_userdir.c
  Log:
  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
  
  Revision  Changes    Path
  1.48      +2 -2      httpd-2.0/modules/mappers/mod_userdir.c
  
  Index: mod_userdir.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_userdir.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- mod_userdir.c	7 May 2002 00:17:11 -0000	1.47
  +++ mod_userdir.c	28 May 2002 23:14:15 -0000	1.48
  @@ -317,8 +317,8 @@
               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;
           }
  
  
  

Mime
View raw message