From 6072b0dcbd4c2fb317f2c6ef5a99f66c46f97c57 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 9 Apr 2026 12:23:08 +0800 Subject: [PATCH] security: fix for code scanning alert no. 12: Use of externally-controlled format string (#3803) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- apps/readest-app/src/pages/api/storage/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/pages/api/storage/download.ts b/apps/readest-app/src/pages/api/storage/download.ts index 2b626f38..c93c0561 100644 --- a/apps/readest-app/src/pages/api/storage/download.ts +++ b/apps/readest-app/src/pages/api/storage/download.ts @@ -147,7 +147,7 @@ async function processFileKeys( const downloadUrl = await getDownloadSignedUrl(fileRecord.file_key, 1800); return { fileKey, downloadUrl }; } catch (error) { - console.error(`Error creating signed URL for ${fileKey}:`, error); + console.error('Error creating signed URL for %s:', fileKey, error); return { fileKey, downloadUrl: undefined }; } }),