Fixed problem with names that have an appostrophy causing issues with PayPal checkout...
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 27 Aug 2018 20:35:21 +0000 (16:35 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 27 Aug 2018 20:35:21 +0000 (16:35 -0400)
index.php [changed mode: 0644->0755]
readme.txt [changed mode: 0644->0755]
views/front/registrations/checkout.html [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
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.
old mode 100644 (file)
new mode 100755 (executable)
index d6209b1..4c80d32
@@ -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
old mode 100644 (file)
new mode 100755 (executable)
index 7e41da3..7c0b687
                         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}'
                                 }
                             },
                                         items: [
             {foreach $cart.chargeItems as $item}                                        
                                             { 
-                                                name: '{$item.name}',
+                                                name: '{$item.name|escape}',
                                                 quantity: {$item.quantity},
                                                 price: {$item.price},
                                                 currency: 'USD'