From 443e437f88757a006bddd1f2f1f59f890e6abe29 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Tue, 24 Apr 2012 16:10:53 +0200 Subject: [PATCH] Replace spaces with + signs in download url after decode --- woocommerce-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') . '' );