forked from akai/readest
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>
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user