Repository navigation
v0.3.2
Fixed
redact_urino longer over-redacts a well-formed URI. The textual
fallback -- which reads the last@in the whole string as the userinfo
delimiter -- ran wheneverurlsplitreported no password, including for
URIs that simply do not have one.ssh://nas:22/mail/user@example.com
carries no credential at all and came back asssh://nas@example.com: a
diagnostic quietly naming a different host. Guessing is now confined to
input that does not parse -- when the URI is well formed,urlsplit's
authority is the authority, so an@in a path is left alone. A password
hidden by an unencoded/,?or#is still redacted: that input is
malformed (the separator ends the authority, leavinguser:secretread as
host:port), and detecting exactly that is what now gates the fallback.
Changed
ConnectionStringnow documents the parsing contract it already enforced:
the input must be a valid URI, and reserved characters in a password must
be percent-encoded. There is no lenient mode and none is planned -- a
password may itself contain@and:, so nothing can recover where an
unescaped one ended, and a guess in the parser would be a guess about what
to connect to. Documentation and tests only; behaviour is unchanged.
Full Changelog: v0.3.1...v0.3.2