Improved ldap import user routine (fix for #3186)

This commit is contained in:
Ozzie Isaacs
2024-10-25 10:20:29 +02:00
parent cd01aaa69e
commit abedb13473
2 changed files with 9 additions and 8 deletions

View File

@@ -2081,7 +2081,7 @@ def _handle_edit_user(to_save, content, languages, translations, kobo_support):
def extract_user_data_from_field(user, field):
match = re.search(field + r"=([@\.\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE)
match = re.search(field + r"=(.*?)($|(?<!\\),)", user, re.IGNORECASE | re.UNICODE)
if match:
return match.group(1)
else: