Skip to content

Commit

Permalink
Fixed Uri::hasStandardPort() to support reverse proxy configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Nov 10, 2018
1 parent 005f626 commit 82d3d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Allow custom Flex form views
* Cleaned up and sorted the Service `idMap`
* Allow request headers `Content-Type` to set the template type [form#221](https://github.com/getgrav/grav-plugin-form/issues/221)
1. [](#bugfix)
* Fixed `Uri::hasStandardPort()` to support reverse proxy configurations [#1786](https://github.com/getgrav/grav/issues/1786)

# v1.6.0-beta.5
## 11/05/2018
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ protected function createFromEnvironment(array $env)
*/
protected function hasStandardPort()
{
return ($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443);
return ($this->port === 80 || $this->port === 443);
}

/**
Expand Down

0 comments on commit 82d3d5e

Please sign in to comment.