--- loncom/lti/ltiauth.pm 2021/11/03 01:04:04 1.24 +++ loncom/lti/ltiauth.pm 2021/11/22 03:19:05 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network # Basic LTI Authentication Module # -# $Id: ltiauth.pm,v 1.24 2021/11/03 01:04:04 raeburn Exp $ +# $Id: ltiauth.pm,v 1.25 2021/11/22 03:19:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -930,7 +930,7 @@ sub lti_session { if ($params->{'launch_presentation_document_target'}) { $env{'request.lti.target'} = $params->{'launch_presentation_document_target'}; } - foreach my $key (%{$params}) { + foreach my $key (keys(%{$params})) { delete($env{'form.'.$key}); } my $redirecturl = '/adm/switchserver'; @@ -942,7 +942,7 @@ sub lti_session { } else { # need to login them in, so generate the need data that # migrate expects to do login - foreach my $key (%{$params}) { + foreach my $key (keys(%{$params})) { delete($env{'form.'.$key}); } if (($ltihash->{'callback'}) && ($params->{$ltihash->{'callback'}})) {