Skip to content

Commit

Permalink
Fix ODTUtility.php inline file loading
Browse files Browse the repository at this point in the history
When using a downloaded image from ``$http``, it should load from content instead of an URL.
  • Loading branch information
eduardomozart committed Jun 13, 2024
1 parent 892ed10 commit 2e928f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ODT/ODTUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))
Expand Down

0 comments on commit 2e928f3

Please sign in to comment.