From c382037208f38f18efb5a6b21d6936efc55fc408 Mon Sep 17 00:00:00 2001 From: Thorsten Reiter <34274688+reithor@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:23:48 +0100 Subject: [PATCH] Merge pull request from GHSA-7crc-r3wg-cfgf --- lib/Gateway/Endpoint.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Gateway/Endpoint.php b/lib/Gateway/Endpoint.php index 36067421..0b9ec389 100644 --- a/lib/Gateway/Endpoint.php +++ b/lib/Gateway/Endpoint.php @@ -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}"; } /** @@ -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(); } }