Skip to content

Commit

Permalink
forgotten bcrypt pattern extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Mar 10, 2025
1 parent 0f67336 commit 3a13ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/auth/htpasswd.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _read_htpasswd(self, init: bool, suppress: bool) -> Tuple[bool, int, dict, i
htpasswd_ok = False
skip = True
else:
if digest.startswith("$2y$", 0, 4) and len(digest) == 60:
if re.match(r"^\$2(a|b|x|y)?\$", digest) and len(digest) == 60:
if init is True:
bcrypt_use += 1
else:
Expand Down

0 comments on commit 3a13ffb

Please sign in to comment.