Fixed form.php to send to the LTI Provider using POST arguments instead of querystring as specified into the IMS/LTI spec

pull/2590/head
meuhland 7 years ago committed by Angel Fernando Quiroz Campos
parent 8dd1acdcfc
commit 2219fd4fb5
  1. 10
      plugin/ims_lti/form.php

@ -83,8 +83,14 @@ $result = $oauth->sign(array(
<title>title</title> <title>title</title>
</head> </head>
<body> <body>
<form action="<?php echo $result['signed_url'] ?>" name="ltiLaunchForm" method="post" encType="application/x-www-form-urlencoded"> <form action="<?php echo $tool->getLaunchUrl() ?>" name="ltiLaunchForm" method="post" encType="application/x-www-form-urlencoded">
<input type="submit" value="Press to continue to external tool"/> <?php
foreach($result["parameters"] as $key => $values) //Dump parameters
{
echo("<input type='hidden' name='$key' value='$values' />");
}
?>
<input type="submit" value="Press to continue to external tool"/>
</form> </form>
<script language="javascript"> <script language="javascript">

Loading…
Cancel
Save