httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r649113 - /httpd/httpd/trunk/modules/aaa/mod_auth_form.c
Date Thu, 17 Apr 2008 14:03:20 GMT
Author: minfrin
Date: Thu Apr 17 07:03:14 2008
New Revision: 649113

URL: http://svn.apache.org/viewvc?rev=649113&view=rev
Log:
Ensure that the REMOTE_USER variable is correctly written when the user
has been authenticated from a session.

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

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=649113&r1=649112&r2=649113&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_form.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_form.c Thu Apr 17 07:03:14 2008
@@ -538,6 +538,11 @@
         ap_session_get(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH, NULL),
hash);
     }
 
+    /* set the user, even though the user is unauthenticated at this point */
+    if (user && *user) {
+        r->user = (char *) *user;
+    }
+
     return APR_SUCCESS;
 
 }



Mime
View raw message