Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure parameters in POST override other LTI values #10

Merged
merged 1 commit into from
Sep 3, 2018
Merged

Ensure parameters in POST override other LTI values #10

merged 1 commit into from
Sep 3, 2018

Conversation

Izumi-kun
Copy link
Owner

@Izumi-kun Izumi-kun commented Jun 27, 2018

Discussion: 1EdTech#48

@Izumi-kun Izumi-kun closed this Jun 27, 2018
@Izumi-kun Izumi-kun changed the base branch from 1.1 to master June 27, 2018 13:14
@Izumi-kun Izumi-kun reopened this Jun 27, 2018
@Izumi-kun Izumi-kun changed the title Prevent parameters in POST overriding other values Ensure parameters in POST override other LTI values Jun 28, 2018
@dac514
Copy link
Collaborator

dac514 commented Aug 3, 2018

Please merge? We're still using this library. It's clearly the best PHP option out here for now.

@Izumi-kun Izumi-kun merged commit 1b064ec into Izumi-kun:master Sep 3, 2018
// If there are parameters in $_POST, these are likely what will be used. Therefore, they should be considered
// the final value in the case of any duplicates from sources parsed above.
foreach ($_POST as $key => $value) {
$parameters[$key] = OAuthUtil::urldecode_rfc3986($value);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need urldecode here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants