Payment Form for PayPal Pro - Version 1.1.20

Version Description

  • Fixed magic quotes issue

=

Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Payment Form for PayPal Pro
Version 1.1.20
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.20

Files changed (2) hide show
  1. README.txt +8 -2
  2. cp_ppp.php +7 -6
README.txt CHANGED
@@ -181,7 +181,13 @@ If that doesn't work please check if your hosting service requires some specific
181
  = 1.0.8 =
182
  * Fixed bug related to the new WP 4.6 PHPMailer rule
183
 
 
 
 
 
 
 
184
  == Upgrade Notice ==
185
 
186
- = 1.0.9 =
187
- * Fixed POST encoding
181
  = 1.0.8 =
182
  * Fixed bug related to the new WP 4.6 PHPMailer rule
183
 
184
+ = 1.0.9 =
185
+ * Fixed POST encoding
186
+
187
+ = 1.1.20 =
188
+ * Fixed magic quotes issue
189
+
190
  == Upgrade Notice ==
191
 
192
+ = 1.1.20 =
193
+ * Fixed magic quotes issue
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
- Version: 1.0.9
7
  Author: CodePeople.net
8
  Author URI: http://codepeople.net
9
  License: GPL
@@ -1289,11 +1289,12 @@ function cp_ppp_save_options()
1289
  global $wpdb;
1290
  if (!defined('CP_PPP_ID'))
1291
  define ('CP_PPP_ID',intval($_POST["cp_ppp_id"]));
1292
- /**
1293
- foreach ($_POST as $item => $value)
1294
- if (!is_array($value))
1295
- $_POST[$item] = stripcslashes($value);
1296
- */
 
1297
  $data = array(
1298
  'form_structure' => $_POST['form_structure'],
1299
 
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
+ Version: 1.1.20
7
  Author: CodePeople.net
8
  Author URI: http://codepeople.net
9
  License: GPL
1289
  global $wpdb;
1290
  if (!defined('CP_PPP_ID'))
1291
  define ('CP_PPP_ID',intval($_POST["cp_ppp_id"]));
1292
+
1293
+ if (substr_count($_POST['form_structure'],"\\") > 30)
1294
+ foreach ($_POST as $item => $value)
1295
+ if (!is_array($value))
1296
+ $_POST[$item] = stripcslashes($value);
1297
+
1298
  $data = array(
1299
  'form_structure' => $_POST['form_structure'],
1300