We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668d17c commit 6f45f5aCopy full SHA for 6f45f5a
backend/database/r2_connector.py
@@ -43,7 +43,7 @@ def __init__(
43
44
logger.info(f"Initialized R2Connector for bucket: {self.bucket_name}")
45
46
- def sanitize_filename(self, filename: str) -> str:
+ def _sanitize_filename(self, filename: str) -> str:
47
"""
48
Sanitize filename to prevent directory traversal attacks.
49
@@ -167,7 +167,7 @@ def upload_video(
167
168
try:
169
# sanitize filename to prevent directory traversal attacks
170
- filename = self.sanitize_filename(filename)
+ filename = self._sanitize_filename(filename)
171
172
# Append timestamp to filename to ensure uniqueness
173
import time
0 commit comments