diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-02-19 19:51:35 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-02-19 19:51:35 +0100 |
commit | 1ddfcade6ffb9417b222000a9ea682ac721a40ec (patch) | |
tree | 69c3ce4409bbefb4c37f2ed017f3b9677514dd95 | |
parent | 76b2760f03f8eb9fedfc99dc9455ffe7bceb51c6 (diff) | |
download | bin-1ddfcade6ffb9417b222000a9ea682ac721a40ec.tar.gz bin-1ddfcade6ffb9417b222000a9ea682ac721a40ec.tar.xz |
borg-restore.pl: Untaint config file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | borg-restore.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/borg-restore.pl b/borg-restore.pl index 58bead1..622bec3 100755 --- a/borg-restore.pl +++ b/borg-restore.pl @@ -150,6 +150,7 @@ package Settings; ); for my $configfile (@configfiles) { + $configfile = Helper::untaint($configfile, qr/.*/); if (-e $configfile) { unless (my $return = do $configfile) { die "couldn't parse $configfile: $@" if $@; |