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

Commit

Permalink
port check using !==
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 7, 2018
1 parent 9e0c0ad commit b5eef29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ private function parseUri($uri)
$this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : '';
$this->userInfo = isset($parts['user']) ? $this->filterUserInfoPart($parts['user']) : '';
$this->host = isset($parts['host'])
? strtolower($parts['host']) . ($this->scheme === 'https' && (isset($parts['port']) && $parts['port'] != 80) ? ':' . $parts['port'] : null)
? strtolower($parts['host']) . ($this->scheme === 'https' && (isset($parts['port']) && $parts['port'] !== 80) ? ':' . $parts['port'] : null)
: '';
$this->port = isset($parts['port']) ? $parts['port'] : null;
$this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : '';
Expand Down

0 comments on commit b5eef29

Please sign in to comment.