From 54919b9519db620100d1b8df8845620c2788332f Mon Sep 17 00:00:00 2001 From: ostapische Date: Wed, 13 Apr 2022 15:49:55 +0300 Subject: [PATCH] fix rb_sysopen error while processing images --- lib/caracal/document.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/caracal/document.rb b/lib/caracal/document.rb index 66fdc368..63f01665 100644 --- a/lib/caracal/document.rb +++ b/lib/caracal/document.rb @@ -225,7 +225,7 @@ def render_media(zip) if rel.relationship_data.to_s.size > 0 content = rel.relationship_data else - content = open(rel.relationship_target).read + content = URI.open(rel.relationship_target).read end zip.put_next_entry("word/#{ rel.formatted_target }")