File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1515- use row locking in MySQL newid() (sf bug 1034211)
1616- add sanity check for sort and group on same property (sf bug 1033477)
1717- extend OTK and session table value cols to TEXT (sf bug 1031271)
18+ - fix lookup of REMOTE_USER (sf bug 1002923)
1819
1920
20212004-07-21 0.7.6
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ Seb Brezel,
7474Titus Brown,
7575Godefroid Chapelle,
7676Roch'e Compaan,
77+ Wil Cooley,
7778Joe Cooper,
7879Kelley Dagley,
7980Paul F. Dubois,
Original file line number Diff line number Diff line change 1- # $Id: client.py,v 1.176.2.4 2004-08-02 22:42:55 richard Exp $
1+ # $Id: client.py,v 1.176.2.5 2004-10-07 23:14:23 richard Exp $
22
33"""WWW request handler (also used in the stand-alone server).
44"""
@@ -284,14 +284,12 @@ def determine_user(self):
284284 self .clean_sessions ()
285285 sessions = self .db .getSessionManager ()
286286
287- user = 'anonymous'
288-
289287 # first up, try the REMOTE_USER var (from HTTP Basic Auth handled
290288 # by a front-end HTTP server)
291- try :
292- user = os . getenv ( 'REMOTE_USER' )
293- except KeyError :
294- pass
289+ if self . env . has_key ( 'REMOTE_USER' ) :
290+ user = self . env [ 'REMOTE_USER' ]
291+ else :
292+ user = 'anonymous'
295293
296294 # look up the user session cookie (may override the REMOTE_USER)
297295 cookie = Cookie .SimpleCookie (self .env .get ('HTTP_COOKIE' , '' ))
You can’t perform that action at this time.
0 commit comments