mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-10-19 07:34:58 +00:00
fix(plugins): word the redaction's URL comment so the secret scan passes
detect-secrets read the comment's scheme://user:password@host as Basic Auth credentials.
This commit is contained in:
parent
3c61cab4de
commit
2264efed24
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ from typing import Any
|
|||
REDACTED = "***"
|
||||
|
||||
_REDACTIONS = (
|
||||
# scheme://user:password@host, the form every proxy is given in.
|
||||
# A URL's user and password before its host, the form every proxy is given in.
|
||||
(
|
||||
re.compile(r"(\b[a-zA-Z][a-zA-Z0-9+.-]*://)[^\s/?#@'\"<>]+@"),
|
||||
rf"\1{REDACTED}@",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue