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

Changeset 1865

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

Fixed #759

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-3.0.x/cherrypy/lib/httpauth.py

    r1418 r1865  
    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