Browse Source

take encryption function from globals() rather than locals()

Lukasz Langa 15 năm trước cách đây
mục cha
commit
00fb296ed7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      radicale/acl/htpasswd.py

+ 1 - 1
radicale/acl/htpasswd.py

@@ -65,5 +65,5 @@ def has_right(owner, user, password):
         if line.strip():
             login, hash_value = line.strip().split(":")
             if login == user and (not PERSONAL or user == owner):
-                return locals()["_%s" % ENCRYPTION](hash_value, password)
+                return globals()["_%s" % ENCRYPTION](hash_value, password)
     return False