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

force_https didn’t force https #3302

Merged
merged 2 commits into from
Jul 13, 2020

Conversation

colethorsen
Copy link
Contributor

when https:// is present in a defined base URL and a user accesses the site on on an insecure protocol, it would not force them onto secure.

Description
just because the baseURL defines the protocol as https the user isn't necessarily forced onto https. This forces the user onto https.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

when https:// is present in a defined base URL and a user accesses the site on on an insecure protocol, it would not force them onto secure.
Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

system/Common.php Outdated Show resolved Hide resolved
Co-authored-by: Michal Sniatala <[email protected]>
@michalsn michalsn merged commit 538d56f into codeigniter4:develop Jul 13, 2020
@michalsn
Copy link
Member

Thank you!

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.

2 participants