Skip to content

Commit

Permalink
Merge pull request from GHSA-7crc-r3wg-cfgf
Browse files Browse the repository at this point in the history
  • Loading branch information
reithor authored Nov 3, 2023
1 parent 0094b62 commit c382037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Gateway/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ public function __construct(array $properties = [])
*/
public function getIdentifier()
{
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');

return "{$authorization}{$this->host}:{$this->port}{$this->path}/{$this->core}";
return "{$this->host}:{$this->port}{$this->path}/{$this->core}";
}

/**
Expand All @@ -111,6 +109,8 @@ public function getIdentifier()
*/
public function getURL()
{
return "{$this->scheme}://" . $this->getIdentifier();
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');

return "{$this->scheme}://" . $authorization . $this->getIdentifier();
}
}

0 comments on commit c382037

Please # to comment.