Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+11 -2
View File
@@ -486,7 +486,13 @@ class ImsLtiPlugin extends Plugin
throw new Exception($this->get_lang('NoAccessToUrl'));
}
$xml = new SimpleXMLElement($content);
libxml_use_internal_errors(true);
$xml = simplexml_load_string($content, SimpleXMLElement::class, LIBXML_NONET);
if ($xml === false) {
throw new Exception($this->get_lang('LaunchUrlNotFound'));
}
$result = $xml->xpath('blti:launch_url');
if (empty($result)) {
@@ -718,7 +724,10 @@ class ImsLtiPlugin extends Plugin
return null;
}
return new SimpleXMLElement($request);
libxml_use_internal_errors(true);
$xml = simplexml_load_string($request, SimpleXMLElement::class, LIBXML_NONET);
return $xml !== false ? $xml : null;
}
/**