Skip to content

Commit

Permalink
Update kioskpearsonjson to work with php8…maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusso committed Feb 15, 2024
1 parent 12a59f5 commit 3db9a98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions grade/import/kioskpearsonjson/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@
'oauth_version' => '1.0'
);


// BEGIN LSU helper instantiation fix.
$oinstance = new oauth_helper($oauthData);

$sig_array = array(
'POST',
preg_replace('/%7E/', '~', rawurlencode($gradeURL)),
rawurlencode(oauth_helper::get_signable_parameters($oauthData)),
rawurlencode($oinstance->get_signable_parameters($oauthData)),
);
// END LSU helper instantiation fix.

$base_string = implode('&', $sig_array);
$secret = $CFG->mylabmastering_secret . '&';
Expand Down

0 comments on commit 3db9a98

Please sign in to comment.