Skip to content

Commit 6e837b2

Browse files
author
Richard Jones
committed
fixed handling of missing password [SF#655632]
1 parent 45b8e03 commit 6e837b2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ are given with the most recent entry first.
77
- hyperlinking of special text (url, email, item designator) in messages
88
- fixed time default in date.py
99
- fixed error in cgi/templates.py (sf bug 652089)
10+
- fixed handling of missing password (sf bug 655632)
1011

1112

1213
2002-12-11 0.5.3

roundup/password.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: password.py,v 1.7 2002-09-26 13:38:35 gmcm Exp $
18+
# $Id: password.py,v 1.8 2002-12-18 23:57:09 richard Exp $
1919

2020
__doc__ = """
2121
Password handling (encoding, decoding).
@@ -31,6 +31,8 @@
3131
def encodePassword(plaintext, scheme, other=None):
3232
'''Encrypt the plaintext password.
3333
'''
34+
if plaintext is None:
35+
plaintext = ""
3436
if scheme == 'SHA':
3537
s = sha.sha(plaintext).hexdigest()
3638
elif scheme == 'crypt' and crypt is not None:

0 commit comments

Comments
 (0)