httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/support suexec.c
Date Mon, 14 Jul 2003 17:24:38 GMT
nd          2003/07/14 10:24:38

  Modified:    .        CHANGES
               server   util_script.c
               support  suexec.c
  Log:
  Remember an authenticated user during internal redirects if the
  redirection target is not access protected and pass it
  to scripts using the REDIRECT_REMOTE_USER environment variable.
  
  PR: 10678, 11602.
  
  Revision  Changes    Path
  1.1224    +5 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1223
  retrieving revision 1.1224
  diff -u -r1.1223 -r1.1224
  --- CHANGES	14 Jul 2003 16:45:05 -0000	1.1223
  +++ CHANGES	14 Jul 2003 17:24:36 -0000	1.1224
  @@ -2,6 +2,11 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) Remember an authenticated user during internal redirects if the
  +     redirection target is not access protected and pass it
  +     to scripts using the REDIRECT_REMOTE_USER environment variable.
  +     PR 10678, 11602.  [André Malo]
  +
     *) mod_rewrite: fix a problem in the proxy support of mod_rewrite.
        The broken code was inserting multiple "proxy:" fields in the
        rewritten URIs. [PR: 13946]
  
  
  
  1.82      +11 -0     httpd-2.0/server/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_script.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- util_script.c	3 Feb 2003 17:53:20 -0000	1.81
  +++ util_script.c	14 Jul 2003 17:24:38 -0000	1.82
  @@ -286,6 +286,17 @@
       if (r->user) {
   	apr_table_addn(e, "REMOTE_USER", r->user);
       }
  +    else if (r->prev) {
  +        request_rec *back = r->prev;
  +
  +        while (back) {
  +            if (back->user) {
  +                apr_table_addn(e, "REDIRECT_REMOTE_USER", back->user);
  +                break;
  +            }
  +            back = back->prev;
  +        }
  +    }
       if (r->ap_auth_type) {
   	apr_table_addn(e, "AUTH_TYPE", r->ap_auth_type);
       }
  
  
  
  1.27      +1 -0      httpd-2.0/support/suexec.c
  
  Index: suexec.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/suexec.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- suexec.c	14 Jul 2003 16:04:47 -0000	1.26
  +++ suexec.c	14 Jul 2003 17:24:38 -0000	1.27
  @@ -160,6 +160,7 @@
       "REMOTE_USER=",
       "REDIRECT_HANDLER=",
       "REDIRECT_QUERY_STRING=",
  +    "REDIRECT_REMOTE_USER=",
       "REDIRECT_STATUS=",
       "REDIRECT_URL=",
       "REQUEST_METHOD=",
  
  
  

Mime
View raw message