@@ -939,7 +939,7 @@ def convert_admonition node
939
939
height : label_height ,
940
940
fallback_font_name : fallback_svg_font_name ,
941
941
enable_web_requests : allow_uri_read ? ( method :load_open_uri ) . to_proc : false ,
942
- enable_file_requests_with_root : { root : ( ::File . dirname icon_path ) , jail : @jail_dir } ,
942
+ enable_file_requests_with_root : { base : ( ::File . dirname icon_path ) , root : @jail_dir } ,
943
943
cache_images : cache_uri
944
944
svg_obj . resize height : label_height if svg_obj . document . sizing . output_height > label_height
945
945
svg_obj . draw
@@ -1734,7 +1734,7 @@ def convert_image node, opts = {}
1734
1734
file_request_root = false
1735
1735
else
1736
1736
svg_data = ::File . read image_path , mode : 'r:UTF-8'
1737
- file_request_root = { root : ( ::File . dirname image_path ) , jail : @jail_dir }
1737
+ file_request_root = { base : ( ::File . dirname image_path ) , root : @jail_dir }
1738
1738
end
1739
1739
svg_obj = ::Prawn ::SVG ::Interface . new svg_data , self ,
1740
1740
position : alignment ,
@@ -4049,7 +4049,7 @@ def resolve_explicit_width attrs, opts = {}
4049
4049
def resolve_image_options image_path , image_format , image_attrs , opts = { }
4050
4050
if image_format == 'svg'
4051
4051
image_opts = {
4052
- enable_file_requests_with_root : { root : ( ::File . dirname image_path ) , jail : @jail_dir } ,
4052
+ enable_file_requests_with_root : { base : ( ::File . dirname image_path ) , root : @jail_dir } ,
4053
4053
enable_web_requests : allow_uri_read ? ( method :load_open_uri ) . to_proc : false ,
4054
4054
cache_images : cache_uri ,
4055
4055
fallback_font_name : fallback_svg_font_name ,
0 commit comments