httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r690493 - in /httpd/httpd/trunk: CHANGES modules/aaa/mod_auth_form.c
Date Sat, 30 Aug 2008 11:11:22 GMT
Author: minfrin
Date: Sat Aug 30 04:11:21 2008
New Revision: 690493

URL: http://svn.apache.org/viewvc?rev=690493&view=rev
Log:
mod_auth_form: Make sure the logged in user is populated correctly
after a form login. Fixes a missing REMOTE_USER variable directly
following a login.

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/aaa/mod_auth_form.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=690493&r1=690492&r2=690493&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sat Aug 30 04:11:21 2008
@@ -2,6 +2,10 @@
 Changes with Apache 2.3.0
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) mod_auth_form: Make sure the logged in user is populated correctly
+     after a form login. Fixes a missing REMOTE_USER variable directly
+     following a login. [Graham Leggett]
+
   *) mod_session_cookie: Make sure that cookie attributes are correctly
      included in the blank cookie when cookies are removed. This fixes an
      inability to log out when using mod_auth_form. [Graham Leggett]

Modified: httpd/httpd/trunk/modules/aaa/mod_auth_form.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_auth_form.c?rev=690493&r1=690492&r2=690493&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_form.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_form.c Sat Aug 30 04:11:21 2008
@@ -941,6 +941,11 @@
                            &sent_user, &sent_pw, &sent_loc, &sent_method,
                            &sent_mimetype, &sent_body, conf);
 
+        /* make sure any user detected within the subrequest is saved back to
+         * the main request.
+         */
+        r->user = rr->user;
+
         /* insert the kept_body filter on the main request to guarantee the
          * input filter stack cannot be read a second time, optionally inject
          * a saved body if one was specified in the login form.



Mime
View raw message