mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
fix: sanitize user_id/server_id in log to prevent log injection
This commit is contained in:
parent
fd2eeb751c
commit
7259d4f6b4
1 changed files with 3 additions and 3 deletions
|
|
@ -101,9 +101,9 @@ if MCP_AVAILABLE:
|
|||
return {"Authorization": f"Bearer {cred['access_token']}"}
|
||||
except Exception:
|
||||
verbose_logger.debug(
|
||||
"Failed to fetch OAuth credential for user %s / server %s",
|
||||
user_id,
|
||||
server_id,
|
||||
"Failed to fetch OAuth credential for user %r / server %r",
|
||||
str(user_id).replace("\n", "\\n").replace("\r", "\\r"),
|
||||
str(server_id).replace("\n", "\\n").replace("\r", "\\r"),
|
||||
exc_info=True,
|
||||
)
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue