mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-36224: Minor updates to LTI
* No debug display on service.php * Send a 400 header on error
This commit is contained in:
parent
fdbf2f229c
commit
4d7a2c9e1c
@ -24,6 +24,8 @@
|
||||
* @author Chris Scribner
|
||||
*/
|
||||
|
||||
define('NO_DEBUG_DISPLAY', true);
|
||||
|
||||
require_once(dirname(__FILE__) . "/../../config.php");
|
||||
require_once($CFG->dirroot.'/mod/lti/locallib.php');
|
||||
require_once($CFG->dirroot.'/mod/lti/servicelib.php');
|
||||
|
@ -252,6 +252,8 @@ function lti_extend_lti_services($data) {
|
||||
$data->messageid,
|
||||
$data->messagetype
|
||||
);
|
||||
|
||||
header('HTTP/1.0 400 bad request');
|
||||
echo $responsexml->asXML();
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user