Fix all high and medium severity security issues found by Bandit

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-07 19:35:40 +00:00
parent 68143a2689
commit edd1acb3a1
13 changed files with 55 additions and 23 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ def convert_to_pdf(self, file_path, original_filename=None):
log_task_progress(task_id, "call_gotenberg", "in_progress", "Calling Gotenberg API")
# Send the conversion request to Gotenberg
response = requests.post(endpoint, files=files, data=form_data)
response = requests.post(endpoint, files=files, data=form_data, timeout=settings.http_request_timeout)
if response.status_code == 200:
# Save the converted PDF