From 19e42c512360ad5a3bc32110e07ebd3c57334a97 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 27 Aug 2018 16:35:21 -0400 Subject: [PATCH] Fixed problem with names that have an appostrophy causing issues with PayPal checkout scripting --- index.php | 4 ++-- readme.txt | 2 ++ views/front/registrations/checkout.html | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 index.php mode change 100644 => 100755 readme.txt mode change 100644 => 100755 views/front/registrations/checkout.html diff --git a/index.php b/index.php old mode 100644 new mode 100755 index fd825b9..9fdbfed --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Event Registrations * Plugin URI: http://www.gaslightmedia.com/ * Description: Add-on to integrate registrations into Events add-on. - * Version: 1.0.13 + * Version: 1.0.14 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.13'); +define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.14'); define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_VERSION', '1.0.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/readme.txt b/readme.txt old mode 100644 new mode 100755 index d6209b1..4c80d32 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,8 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == += 1.0.14 = +* Hotfix to correct problem with names that have an appostrophy causing issues with PayPal checkout scripting = 1.0.13 = * Hotfix to correct potential problem with not detecting certain credit card payment failures diff --git a/views/front/registrations/checkout.html b/views/front/registrations/checkout.html old mode 100644 new mode 100755 index 7e41da3..7c0b687 --- a/views/front/registrations/checkout.html +++ b/views/front/registrations/checkout.html @@ -621,8 +621,8 @@ payment: { payer: { payer_info: { - first_name: '{$cart.request.bill_fname}', - last_name: '{$cart.request.bill_lname}', + first_name: '{$cart.request.bill_fname|escape}', + last_name: '{$cart.request.bill_lname|escape}', email: '{$cart.request.bill_email}' } }, @@ -638,7 +638,7 @@ items: [ {foreach $cart.chargeItems as $item} { - name: '{$item.name}', + name: '{$item.name|escape}', quantity: {$item.quantity}, price: {$item.price}, currency: 'USD' -- 2.17.1