Ticket #19799: fix1.patch

File fix1.patch, 421 bytes (added by Walter Doekes, 12 years ago)
  • django/contrib/auth/hashers.py

    old new  
    4040        hasher = get_hasher('unsalted_md5')
    4141    else:
    4242        algorithm = encoded.split('$', 1)[0]
     43        if not algorithm:
     44            return False
    4345        hasher = get_hasher(algorithm)
    4446
    4547    must_update = hasher.algorithm != preferred.algorithm
Back to Top