summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-03-02 22:11:49 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-03-02 22:11:49 +0100
commitea7b9ccd31eda9ec803cebe3e29509a9458757b5 (patch)
tree28a73274a388a3712e05bc8afd06478a910cbd88 /t
parentd598a09bebc2567e89234ac9e8e0362b60349c73 (diff)
downloadApp-BorgRestore-ea7b9ccd31eda9ec803cebe3e29509a9458757b5.tar.gz
App-BorgRestore-ea7b9ccd31eda9ec803cebe3e29509a9458757b5.tar.xz
Allow dots in archive names
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 't')
-rw-r--r--t/01_untaint.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/01_untaint.t b/t/01_untaint.t
index 9d2fde1..f9d8a9c 100644
--- a/t/01_untaint.t
+++ b/t/01_untaint.t
@@ -8,6 +8,7 @@ use App::BorgRestore::Helper;
ok(App::BorgRestore::Helper::untaint_archive_name('abc-1234:5+1') eq 'abc-1234:5+1');
ok(App::BorgRestore::Helper::untaint_archive_name('abc') eq 'abc');
+ok(App::BorgRestore::Helper::untaint_archive_name('root-2016-09-30T15+02:00.checkpoint') eq 'root-2016-09-30T15+02:00.checkpoint');
dies_ok(sub{App::BorgRestore::Helper::untaint_archive_name('abc`"\'')}, 'special chars not allowed');
dies_ok(sub{App::BorgRestore::Helper::untaint_archive_name('abc`')}, 'special chars not allowed');