diff options
| author | Dan Allen <dallen@redhat.com> | 2013-05-22 03:20:30 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-05-22 03:20:30 -0600 |
| commit | dd5ae5afa6db95651eb67c19eaaeab4e368dc641 (patch) | |
| tree | 28fded3344e8cde4ef866e34cbb39437865a14bb /lib | |
| parent | 23121b0f92b27086704f2d29efa25f478e2e1db7 (diff) | |
resolves #335 fix bad variable name, add test for it
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/asciidoctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
