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

Do not expose $_SERVER in templates by default #116

Merged
merged 1 commit into from
Feb 11, 2019

Conversation

sanmai
Copy link
Collaborator

@sanmai sanmai commented Feb 11, 2019

This is important primarily because $_SERVER may contain sensitive
data, like AWS access keys, which then can be accessed from user-
provided templates.

Fixes #114

  • I've run the tests with vendor/bin/phpunit
  • None of the tests were found failing
  • I've seen the coverage report at build/coverage/index.html
  • Not a single line left uncovered by tests
  • Any coding standards issues were fixed with vendor/bin/php-cs-fixer fix

This is important primarily because $_SERVER may contain sensitive
data, like AWS access keys, which then can be accessed from user-
provided templates.

Fixes kalimatas#114
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0002%) to 99.911% when pulling 365953e on sanmai:fix-114 into 107d483 on kalimatas:master.

@sanmai sanmai merged commit ce53ad8 into kalimatas:master Feb 11, 2019
@sanmai sanmai deleted the fix-114 branch February 11, 2019 07:53
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.

Content injection from $_SERVER
2 participants