You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
Unfortunately complicated passwords may contain special charcaters that need escaping.
Most of all if the password contains ":" then there regex will fail.
I suggest changing it from PATTERN = re.compile(r'^(.*):(.*):(.*):(.*):(.*)$', re.MULTILINE)
to: PATTERN = re.compile(r'^([^:\n]*):([^:\n]*):([^:\n]*):([^:\n]*):([^\n]*)$', re.MULTILINE)
However in addition to ":" and "" I also found "," that will need escaping.
So I'd suggest to add the following to the _sanitize_str method...
.replace(r',', ',').replace('\\', '\')