From 9072e8a1c12880687c21b92d524182f2262a7907 Mon Sep 17 00:00:00 2001 From: Jennifer Kuenning <72825410+jkueloc@users.noreply.github.com> Date: Mon, 23 Sep 2024 07:01:34 -0400 Subject: [PATCH] Fix code scanning alert #63: Log Injection Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- concordia/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concordia/views.py b/concordia/views.py index 0f1965de5..281240a67 100644 --- a/concordia/views.py +++ b/concordia/views.py @@ -1760,7 +1760,7 @@ def submit_transcription(request, *, pk): "record: submitted: %s pk: %d" ), str(transcription.submitted), - pk, + str(pk).replace('\n', '').replace('\r', ''), ) return JsonResponse( {