Skip to content

Commit c382037

Browse files
authored
Merge pull request from GHSA-7crc-r3wg-cfgf
1 parent 0094b62 commit c382037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Gateway/Endpoint.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ public function __construct(array $properties = [])
9999
*/
100100
public function getIdentifier()
101101
{
102-
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');
103-
104-
return "{$authorization}{$this->host}:{$this->port}{$this->path}/{$this->core}";
102+
return "{$this->host}:{$this->port}{$this->path}/{$this->core}";
105103
}
106104

107105
/**
@@ -111,6 +109,8 @@ public function getIdentifier()
111109
*/
112110
public function getURL()
113111
{
114-
return "{$this->scheme}://" . $this->getIdentifier();
112+
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');
113+
114+
return "{$this->scheme}://" . $authorization . $this->getIdentifier();
115115
}
116116
}

0 commit comments

Comments
 (0)