From dd5ae5afa6db95651eb67c19eaaeab4e368dc641 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 22 May 2013 03:20:30 -0600 Subject: resolves #335 fix bad variable name, add test for it --- lib/asciidoctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb index e7850272..1a1cf6af 100755 --- a/lib/asciidoctor.rb +++ b/lib/asciidoctor.rb @@ -823,7 +823,7 @@ module Asciidoctor elsif write_in_place to_file = File.join(File.dirname(input.path), "#{doc.attributes['docname']}#{doc.attributes['outfilesuffix']}") elsif !stream_output && write_to_target - working_dir = options.has_key?(:base_dir) ? File.expand_path(opts[:base_dir]) : File.expand_path(Dir.pwd) + working_dir = options.has_key?(:base_dir) ? File.expand_path(options[:base_dir]) : File.expand_path(Dir.pwd) # QUESTION should the jail be the working_dir or doc.base_dir??? jail = doc.safe >= SafeMode::SAFE ? working_dir : nil if to_dir -- cgit v1.2.3