From 06202811b460d5ede99dfdf92ccdcdba6e80d94b Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Wed, 5 Jun 2024 20:31:07 +1000 Subject: [PATCH] Fix ssrfFilter url --- server/utils/fileUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index db552062..e62f12a5 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -256,8 +256,8 @@ module.exports.downloadFile = (url, filepath, contentTypeFilter = null) => { method: 'GET', responseType: 'stream', timeout: 30000, - httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl), - httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl) + httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url), + httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url) }) .then((response) => { // Validate content type