Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 457

Show
Ignore:
Timestamp:
07/12/05 12:01:14
Author:
rdelon
Message:

Fixed ticket #222

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/filter/sessionauthenticatefilter.py

    r397 r457  
    7272            sessionMap[sessionKey] = None 
    7373            cherrypy.threadData.user = None 
    74             fromPage = cherrypy.request.paramMap.get('fromPage') 
    75             if fromPage is None: 
    76                 fromPage = '/' 
     74            fromPage = cherrypy.request.paramMap.get('fromPage', '..') 
    7775            cherrypy.response.body = httptools.redirect(fromPage) 
    7876        elif cherrypy.request.path.endswith('doLogin'): 
    79             fromPage = cherrypy.request.paramMap['fromPage'] 
     77            fromPage = cherrypy.request.paramMap.get('fromPage', '..') 
    8078            login = cherrypy.request.paramMap['login'] 
    8179            password = cherrypy.request.paramMap['password'] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets