Files
bytedance--deer-flow/backend/app/gateway/utils.py
T
2026-07-13 11:59:58 +08:00

7 lines
231 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", "")