From 1b91eb6cda4cb944a62263eeaf7076cafc4bd76d Mon Sep 17 00:00:00 2001 From: Lukas Celinak Date: Fri, 26 May 2023 15:48:32 +0200 Subject: [PATCH] #3216 Added parsing for path for overriden image --- classes/api/xmlutil.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/api/xmlutil.php b/classes/api/xmlutil.php index 6a5c4c9..8062ab5 100644 --- a/classes/api/xmlutil.php +++ b/classes/api/xmlutil.php @@ -149,6 +149,7 @@ public static function recode_images( $fs = get_file_storage(); foreach ($items as $item) { $src = str_replace($seed, $empty, $item->getAttribute($srcattribute)); + $src= parse_url($src)['path']; $path = pathinfo($src); $imagefile = $fs->get_file( $contextid,