Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Apply #363 (detection of HTTPS) on v1 (LTS) #364

Merged
merged 7 commits into from Aug 6, 2019
Merged

Apply #363 (detection of HTTPS) on v1 (LTS) #364

merged 7 commits into from Aug 6, 2019

Conversation

michalbundyra
Copy link
Member

As zend-diactoros v1 is still LTS we should provide the hotfix also in that branch.
I've ported @heiglandreas commits with changes to work on v1.

  • Are you fixing a bug?
    • Detail how the bug is invoked currently.
    • Detail the original, incorrect behavior.
    • Detail the new, expected behavior.
    • Base your feature on the master branch, and submit against that branch.
    • Add a regression test that demonstrates the bug, and proves the fix.
    • Add a CHANGELOG.md entry for the fix.

/cc @heiglandreas @weierophinney

michalbundyra and others added 7 commits July 11, 2019 08:36
This modifies the detection of HTTPS by checking whether the lower-case value of the HTTPS-key of the server variable equals 'on'. Before that checked whether the value did *not* match 'off' which meant that the nginx-default for non-HTTPS connections (which, according to the [documentation](http://nginx.org/en/docs/http/ngx_http_core_module.html#var_https) is an empty string) did in fact match and returned that the connection *is* encrypted.

This fixes #362
# Conflicts:
#	src/functions/marshal_uri_from_sapi.php
This adds the test and the CHANGELOG-entry for the changed method

# Conflicts:
#	CHANGELOG.md
This modifies the copyright-date, adds some spaces before and after the
arrow, replaces double quotes with single quotes and modifies a function
docBlock.
It is not possible that header value will be true for HTTPS.
It is `on`/`On`/`ON` when it's enabled, and `off` (apache) or empty string
(nginx) otherwise.
@Xerkus Xerkus merged commit 07cd173 into zendframework:release-1.8 Aug 6, 2019
Xerkus added a commit that referenced this pull request Aug 6, 2019
@Xerkus Xerkus added the bug label Aug 6, 2019
@Xerkus Xerkus added this to the 1.8.7 milestone Aug 6, 2019
@Xerkus
Copy link
Member

Xerkus commented Aug 6, 2019

@webimpress, @heiglandreas thank you

@michalbundyra michalbundyra deleted the hotfix/363-v1 branch August 6, 2019 18:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants