From 4e318cd1926498a6796a426ca79e0ed9fd2f2ec5 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Mon, 6 Jan 2014 22:49:04 -0500 Subject: [PATCH] test symlinkd dir, not file Signed-off-by: Parker Moore --- test/source/_includes/about.html | 1 - test/source/_includes/tmp | 1 + test/test_tags.rb | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 120000 test/source/_includes/about.html create mode 120000 test/source/_includes/tmp diff --git a/test/source/_includes/about.html b/test/source/_includes/about.html deleted file mode 120000 index ef437915..00000000 --- a/test/source/_includes/about.html +++ /dev/null @@ -1 +0,0 @@ -/tmp/pages-test \ No newline at end of file diff --git a/test/source/_includes/tmp b/test/source/_includes/tmp new file mode 120000 index 00000000..cad23091 --- /dev/null +++ b/test/source/_includes/tmp @@ -0,0 +1 @@ +/tmp \ No newline at end of file diff --git a/test/test_tags.rb b/test/test_tags.rb index 4c738b64..68507c76 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -372,10 +372,10 @@ CONTENT title: Include symlink --- -{% include about.html %} +{% include tmp/pages-test %} CONTENT - create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) + create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true, 'safe' => true }) end should "not allow symlink includes" do