Keep non-secret Photos account names out of redaction patterns
This commit is contained in:
@@ -18,6 +18,7 @@ def test_connection_stores_session_only(settings, monkeypatch):
|
||||
assert stat.S_IMODE(p.path.stat().st_mode) == 0o600
|
||||
assert "test-password" not in p.path.read_text()
|
||||
assert p.sid() == "test-session"
|
||||
assert settings.sanitize({"name": "pigway-frame-flow"})["name"] == "pigway-frame-flow"
|
||||
assert (
|
||||
settings.sanitize({"message": "test-password test-session"})["message"]
|
||||
== "[REDACTED] [REDACTED]"
|
||||
|
||||
Reference in New Issue
Block a user