From 2e928f39a422ae65c4a18f957f461f7321cfe7ea Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Thu, 13 Jun 2024 08:44:21 -0300 Subject: [PATCH] Fix ODTUtility.php inline file loading When using a downloaded image from ``$http``, it should load from content instead of an URL. --- ODT/ODTUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ODT/ODTUtility.php b/ODT/ODTUtility.php index 3b8803a..fd102fe 100644 --- a/ODT/ODTUtility.php +++ b/ODT/ODTUtility.php @@ -215,7 +215,7 @@ public static function getImageSize($src, $maxwidth=NULL, $maxheight=NULL){ if(file_exists($src)) { $svgfile = @simplexml_load_file($src); } else { - $svgfile = @simplexml_load_file($fetch); + $svgfile = @simplexml_load_string($fetch); } if(isset($svgfile["width"]) && isset($svgfile["height"]))