diff --git a/woocommerce-functions.php b/woocommerce-functions.php index adc83b52622..3e068b460fe 100644 --- a/woocommerce-functions.php +++ b/woocommerce-functions.php @@ -797,7 +797,7 @@ function woocommerce_download_product() { $download_file = (int) urldecode($_GET['download_file']); $order_key = urldecode( $_GET['order'] ); - $email = urldecode( $_GET['email'] ); + $email = str_replace( ' ', '+', urldecode( $_GET['email'] ) ); if (!is_email($email)) : wp_die( __('Invalid email address.', 'woocommerce') . ' ' . __('Go to homepage →', 'woocommerce') . '' );