Merge pull request #5760 from claudiosmweb/5670-fix-paypal-urls

Add urlencode() in return and cancel_return items in paypal params
This commit is contained in:
Mike Jolley 2014-06-30 15:16:56 +01:00
commit 3b6f7403bb
1 changed files with 2 additions and 2 deletions

View File

@ -293,8 +293,8 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
'charset' => 'UTF-8',
'rm' => is_ssl() ? 2 : 1,
'upload' => 1,
'return' => esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ),
'cancel_return' => esc_url( $order->get_cancel_order_url() ),
'return' => urlencode( esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ) ),
'cancel_return' => urlencode( esc_url( $order->get_cancel_order_url() ) ),
'page_style' => $this->page_style,
'paymentaction' => $this->paymentaction,
'bn' => 'WooThemes_Cart',