From e97acc82b5690a58694bcf915bd41d0e65da5836 Mon Sep 17 00:00:00 2001 From: Matias Saggiorato Date: Mon, 1 Aug 2016 15:22:39 -0300 Subject: [PATCH] Fixed emails not properly encoded in download URLs --- includes/wc-user-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index 43ce6b7505e..40b611ba200 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -446,7 +446,7 @@ function wc_get_customer_available_downloads( $customer_id ) { array( 'download_file' => $product_id, 'order' => $result->order_key, - 'email' => $result->user_email, + 'email' => urlencode( $result->user_email ), 'key' => $result->download_id ), home_url( '/' )