--- loncom/interface/lonexttool.pm 2017/12/30 00:16:29 1.13 +++ loncom/interface/lonexttool.pm 2017/12/30 14:03:53 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Launch External Tool Provider (LTI) # -# $Id: lonexttool.pm,v 1.13 2017/12/30 00:16:29 raeburn Exp $ +# $Id: lonexttool.pm,v 1.14 2017/12/30 14:03:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -200,7 +200,7 @@ sub handler { $url .= $toolhash{'crsappend'}; } $r->print(&launch_html($url,$toolhash{'key'},$toolhash{'secret'}, - $submittext,\%lti)); + $toolhash{'sigmethod'},$submittext,\%lti)); } else { $r->print('
'.&mt('External Tool Unavailable').'
'); } @@ -412,8 +412,8 @@ sub lti_params { } sub launch_html { - my ($url,$key,$secret,$submittext,$paramsref) = @_; - my $hashref = &LONCAPA::ltiutils::sign_params($url,$key,$secret,$paramsref); + my ($url,$key,$secret,$sigmethod,$submittext,$paramsref) = @_; + my $hashref = &LONCAPA::ltiutils::sign_params($url,$key,$secret,$sigmethod,$paramsref); my $action = &HTML::Entities::encode($url,'<>&"'); my $form = <<"END";