Skip to content

Commit 4b8288f

Browse files
authored
Merge pull request #6 from wmccoubrey/hotfix/UrlEncodeEmails
urlencode email addresses when loading customer from cyclops
2 parents 0d3bae1 + 7191aa9 commit 4b8288f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/CyclopsService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public function loadCustomer(CyclopsIdentityEntity $identityEntity): CustomerEnt
6363
$request->addHeader('Authorization', 'Basic ' . $this->authorization);
6464
$response = $this->doCyclopsRequest($request);
6565
} else {
66-
$url = $this->cyclopsUrl . "customer?email={$identityEntity->email}";
66+
$email = urlencode($identityEntity->email);
67+
$url = $this->cyclopsUrl . "customer?email=$email";
6768
$request = new HttpRequest($url);
6869
$request->addHeader('Authorization', 'Basic ' . $this->authorization);
6970

0 commit comments

Comments
 (0)