deerflow-code/offline-backend-20260512/backend/app/gateway/utils.py
2026-09-07 18:24:55 +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", "")