From c4eb95e743dee92c11c21c7734697d33ca41d0ce Mon Sep 17 00:00:00 2001 From: Julian Totzek-Hallhuber Date: Tue, 2 Apr 2024 07:55:59 +0200 Subject: [PATCH] fix filepath for policy --- policy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy.js b/policy.js index 2c73fd5..a2e88fd 100644 --- a/policy.js +++ b/policy.js @@ -228,6 +228,10 @@ async function processPolicyFlaws(options, flawData) { //console.log('Filepath end: '+filepath); } + if ( filepath == undefined ){ + filepath = filename + } + if ( filepath == "" ){ filepath = filename }