[fix] Capture PASSPHRASE

See https://github.com/YunoHost-Apps/borg_ynh/issues/87
This commit is contained in:
ljf (zamentur) 2021-06-10 14:47:13 +02:00 committed by GitHub
parent a97fce05ee
commit dbe5e51ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,6 +417,7 @@ class RedactingFormatter(Formatter):
match = re.search( match = re.search(
r"(pwd|pass|password|passphrase|secret\w*|\w+key|token)=(\S{3,})$", r"(pwd|pass|password|passphrase|secret\w*|\w+key|token)=(\S{3,})$",
record.strip(), record.strip(),
re.IGNORECASE
) )
if ( if (
match match