Skip to content

Commit

Permalink
better handling of injection by file
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Sep 5, 2017
1 parent f99077a commit 471faa2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ do
eval file_name=\$"${config_var}_FILE";

if [ -e "$file_name" ]; then
declare "${config_var}"=`cat $file_name`
payload=`cat $file_name`
declare "${config_var}"="${payload}"
fi
done

Expand Down

0 comments on commit 471faa2

Please sign in to comment.