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

fix(lms): url encode for iframe passthrough #58016

Merged
merged 1 commit into from Apr 15, 2024

Conversation

stephenliang
Copy link
Contributor

@stephenliang stephenliang commented Apr 15, 2024

This change URL encodes the state and nonce parameters. Since these parameters are used for redirects or window opens, the encoding is appropriate to ensure the values are passed through to the next page correctly.

Links

Testing story

  1. Ran adhoc schoology instance
  2. Tested launching schoology to Code.org

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

Copy link
Contributor

@carl-codeorg carl-codeorg left a comment

Choose a reason for hiding this comment

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

LGTM. Not sure if it is any better, but there's also the URI::encode_www_form method that can handle the whole params object without calling url_encode individually for each file.

Copy link
Contributor

@nicklathe nicklathe left a comment

Choose a reason for hiding this comment

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

LGTM, nice catch.

@stephenliang stephenliang merged commit 18ad055 into staging Apr 15, 2024
2 checks passed
@stephenliang stephenliang deleted the stephen/iframe-encode branch April 15, 2024 22:01
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.

None yet

3 participants