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

Changeset 1866

Show
Ignore:
Timestamp:
01/16/08 16:33:45
Author:
lawouach
Message:

Fixed #759

Files:

Legend:

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

    r1418 r1866  
    2020SUPPORTED_QOP - list of supported 'Digest' 'qop'. 
    2121""" 
    22 __version__ = 1, 0, 0 
     22__version__ = 1, 0, 1 
    2323__author__ = "Tiago Cogumbreiro <cogumbreiro@users.sf.net>" 
    2424__credits__ = """ 
     
    142142            return None 
    143143 
    144     # If qop is sent then cnonce and cn MUST be present 
    145     if params.has_key("qop") and not params.has_key("cnonce") \ 
    146                                   and params.has_key("cn"): 
     144    # If qop is sent then cnonce and nc MUST be present 
     145    if params.has_key("qop") and not (params.has_key("cnonce") \ 
     146                                      and params.has_key("nc")): 
     147        return None 
     148 
     149    # If qop is not sent, neither cnonce nor nc can be present 
     150    if (params.has_key("cnonce") or params.has_key("nc")) and \ 
     151       not params.has_key("qop"): 
    147152        return None 
    148153 

Hosted by WebFaction

Log in as guest/cpguest to create tickets