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 truncated SCRIPT_NAME #4726

Merged
merged 1 commit into from
May 24, 2021
Merged

Fix truncated SCRIPT_NAME #4726

merged 1 commit into from
May 24, 2021

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented May 23, 2021

Description
It appears that some PHP web servers do not guarantee the SCRIPT_NAME as a substring of REQUEST_URI. From consulting other frameworks, it is still safe to determine the relative path this way, but we need to ensure the segments before checking.

Checklist:

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

@MGatner MGatner merged commit a0f6c3d into codeigniter4:develop May 24, 2021
@MGatner MGatner deleted the uri branch May 24, 2021 11:30
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