Files
deerflow-code/offline-backend-20260512/backend/app/gateway/utils.py
T
2026-05-13 14:36:44 +08:00

7 lines
237 B
Python

"""Shared utility helpers for the Gateway layer."""
def sanitize_log_param(value: str) -> str:
"""Strip control characters to prevent log injection."""
return value.replace("\n", "").replace("\r", "").replace("\x00", "")