Skip to content

Commit

Permalink
Merge pull request #134 from vidmantaskiro/email-in-url-fix
Browse files Browse the repository at this point in the history
fix url, when email uses '+'
  • Loading branch information
greta-mik authored Oct 22, 2024
2 parents d3cd8d6 + b5e3c74 commit a7bf241
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omnisend/includes/Internal/V1/class-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function save_contact( Contact $contact ): SaveContactResponse {

public function get_contact_by_email( string $email ): GetContactResponse {
$error = new WP_Error();
$email = str_replace( '+', '%2b', $email );

$response = wp_remote_get(
OMNISEND_CORE_API_V5 . '/contacts?email=' . $email,
Expand Down

0 comments on commit a7bf241

Please sign in to comment.