Gravity PDF - Version 3.5.11.1

Version Description

  • Bug - Fix issue saving and sending blank PDFs due to security fix
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 3.5.11.1
Comparing to
See all releases

Code changes from version 3.5.11 to 3.5.11.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.gravityformspdfextended.com
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
- Stable tag: 3.5.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,9 @@ All FAQs can be [viewed on the Gravity Forms PDF Extended website](http://gravit
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 3.5.11 =
85
  * Bug - Fix security issue which gave unauthorised users access to Gravity Form entires
86
 
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
+ Stable tag: 3.5.11.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 3.5.11.1 =
85
+ * Bug - Fix issue saving and sending blank PDFs due to security fix
86
+
87
  = 3.5.11 =
88
  * Bug - Fix security issue which gave unauthorised users access to Gravity Form entires
89
 
model/pdf.php CHANGED
@@ -234,7 +234,6 @@ class GFPDF_Core_Model
234
 
235
 
236
  PDF_Common::get_ids();
237
-
238
  $ip = GFFormsModel::get_ip();
239
 
240
  /*
@@ -384,7 +383,7 @@ class GFPDF_Core_Model
384
  */
385
  public static function gfpdfe_save_pdf($entry, $form)
386
  {
387
- global $gfpdf;
388
 
389
  $form_id = $entry['form_id'];
390
  $lead_id = $entry['id'];
@@ -404,6 +403,9 @@ class GFPDF_Core_Model
404
  return false;
405
  }
406
 
 
 
 
407
  /*
408
  * To have our configuration indexes so loop through the PDF template configuration
409
  * and generate and attach PDF files.
@@ -457,6 +459,7 @@ class GFPDF_Core_Model
457
  $form_id = $entry['form_id'];
458
  $lead_id = apply_filters('gfpdfe_lead_id', $entry['id'], $form, $entry, $gfpdf); /* allow premium plugins to override the lead ID */
459
 
 
460
  /*
461
  * Before setting up PDF options we will check if a configuration is found
462
  * If not, we will set up defaults defined in configuration.php
@@ -470,7 +473,10 @@ class GFPDF_Core_Model
470
  if(!$config = $gfpdf->get_config($form_id))
471
  {
472
  return $notification;
473
- }
 
 
 
474
 
475
  /*
476
  * To have our configuration indexes so loop through the PDF template configuration
234
 
235
 
236
  PDF_Common::get_ids();
 
237
  $ip = GFFormsModel::get_ip();
238
 
239
  /*
383
  */
384
  public static function gfpdfe_save_pdf($entry, $form)
385
  {
386
+ global $gfpdf, $form_id, $lead_id;
387
 
388
  $form_id = $entry['form_id'];
389
  $lead_id = $entry['id'];
403
  return false;
404
  }
405
 
406
+ /* set up the correct lead IDs */
407
+ PDF_Common::get_ids();
408
+
409
  /*
410
  * To have our configuration indexes so loop through the PDF template configuration
411
  * and generate and attach PDF files.
459
  $form_id = $entry['form_id'];
460
  $lead_id = apply_filters('gfpdfe_lead_id', $entry['id'], $form, $entry, $gfpdf); /* allow premium plugins to override the lead ID */
461
 
462
+
463
  /*
464
  * Before setting up PDF options we will check if a configuration is found
465
  * If not, we will set up defaults defined in configuration.php
473
  if(!$config = $gfpdf->get_config($form_id))
474
  {
475
  return $notification;
476
+ }
477
+
478
+ /* set up the correct lead IDs */
479
+ PDF_Common::get_ids();
480
 
481
  /*
482
  * To have our configuration indexes so loop through the PDF template configuration
pdf.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
- Version: 3.5.11
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
@@ -33,7 +33,7 @@ GNU General Public License for more details.
33
  /*
34
  * Define our constants
35
  */
36
- define('PDF_EXTENDED_VERSION', '3.5.11');
37
  define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7');
38
  define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5');
39
  define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5');
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
+ Version: 3.5.11.1
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
33
  /*
34
  * Define our constants
35
  */
36
+ define('PDF_EXTENDED_VERSION', '3.5.11.1');
37
  define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7');
38
  define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5');
39
  define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5');
view/templates/settings/changelog.php CHANGED
@@ -21,6 +21,11 @@
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
22
 
23
  <h3><?php echo PDF_EXTENDED_VERSION; ?></h3>
 
 
 
 
 
24
  <ul>
25
  <li>Bug - Fix security issue which gave unauthorised users access to Gravity Form entires</li>
26
  </ul>
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
22
 
23
  <h3><?php echo PDF_EXTENDED_VERSION; ?></h3>
24
+
25
+ <ul>
26
+ <li>Bug - Fix issue saving and sending blank PDFs due to security fix</li>
27
+ </ul>
28
+ <h3>3.5.11</h3>
29
  <ul>
30
  <li>Bug - Fix security issue which gave unauthorised users access to Gravity Form entires</li>
31
  </ul>