Contact Form Entries – Contact Form 7, WPforms and more - Version 1.1.7

Version Description

  • fixed xss issue reported by Gaetano Perrone.
Download this release

Release Info

Developer CRMPerks
Plugin Icon 128x128 Contact Form Entries – Contact Form 7, WPforms and more
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

Files changed (2) hide show
  1. contact-form-entries.php +9 -8
  2. readme.txt +5 -2
contact-form-entries.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Contact Form Entries
4
  * Description: Save form submissions to the database from <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a>, <a href="https://elementor.com/widgets/form-widget/">Elementor Forms</a> and <a href="https://wordpress.org/plugins/wpforms-lite/">WP Forms</a>.
5
- * Version: 1.1.6
6
  * Requires at least: 3.8
7
  * Tested up to: 5.6
8
  * Author URI: https://www.crmperks.com
@@ -26,7 +26,7 @@ class vxcf_form {
26
  public static $type = "vxcf_form";
27
  public static $path = '';
28
 
29
- public static $version = '1.1.6';
30
  public static $upload_folder = 'crm_perks_uploads';
31
  public static $db_version='';
32
  public static $base_url='';
@@ -522,7 +522,7 @@ $ip=$meta_info['ip'];
522
  }else{
523
  $ip=$this->get_ip();
524
  }
525
- $info['ip']=$ip;
526
  $resolution="";
527
  if(isset($_POST['vx_width'])){
528
  $width=vxcf_form::post('vx_width');
@@ -531,24 +531,25 @@ $height=vxcf_form::post('vx_height');
531
  $info['screen']=$resolution;
532
  }
533
  $user_agent=!empty($meta_info['user_agent']) ? $meta_info['user_agent'] : '';
534
- $bro_info=self::browser_info($user_agent);
535
  //get page url
536
  $page_url="//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
537
  if(isset($_REQUEST['vx_url'])){
538
  $page_url=vxcf_form::post('vx_url');
539
  }
540
  if(!empty($meta_info['url'])){
541
- $page_url=$meta_info['url'];
542
  }
543
  $page_url=substr($page_url,0,250);
544
- $info['url']=$page_url;
545
- $info['browser']=$bro_info['name'];
546
- $info['os']=$bro_info['platform'];
547
  if(!empty($meta_info['vis_id'])){
548
  $info['vis_id']=$meta_info['vis_id'];
549
  }else{
550
  $info['vis_id']=$this->vx_id();
551
  }
 
552
  return $info;
553
  }
554
  public function create_entry_vf($entry_id,$entry,$form){
2
  /**
3
  * Plugin Name: Contact Form Entries
4
  * Description: Save form submissions to the database from <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wordpress.org/plugins/ninja-forms/">Ninja Forms</a>, <a href="https://elementor.com/widgets/form-widget/">Elementor Forms</a> and <a href="https://wordpress.org/plugins/wpforms-lite/">WP Forms</a>.
5
+ * Version: 1.1.7
6
  * Requires at least: 3.8
7
  * Tested up to: 5.6
8
  * Author URI: https://www.crmperks.com
26
  public static $type = "vxcf_form";
27
  public static $path = '';
28
 
29
+ public static $version = '1.1.7';
30
  public static $upload_folder = 'crm_perks_uploads';
31
  public static $db_version='';
32
  public static $base_url='';
522
  }else{
523
  $ip=$this->get_ip();
524
  }
525
+ $info['ip']=vxcf_form::clean($ip);
526
  $resolution="";
527
  if(isset($_POST['vx_width'])){
528
  $width=vxcf_form::post('vx_width');
531
  $info['screen']=$resolution;
532
  }
533
  $user_agent=!empty($meta_info['user_agent']) ? $meta_info['user_agent'] : '';
534
+ $bro_info=self::browser_info($user_agent);
535
  //get page url
536
  $page_url="//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
537
  if(isset($_REQUEST['vx_url'])){
538
  $page_url=vxcf_form::post('vx_url');
539
  }
540
  if(!empty($meta_info['url'])){
541
+ $page_url=vxcf_form::clean($meta_info['url']);
542
  }
543
  $page_url=substr($page_url,0,250);
544
+ $info['url']=vxcf_form::clean($page_url);
545
+ $info['browser']=vxcf_form::clean($bro_info['name']);
546
+ $info['os']=vxcf_form::clean($bro_info['platform']);
547
  if(!empty($meta_info['vis_id'])){
548
  $info['vis_id']=$meta_info['vis_id'];
549
  }else{
550
  $info['vis_id']=$this->vx_id();
551
  }
552
+ $info['vis_id']=vxcf_form::clean($info['vis_id']);
553
  return $info;
554
  }
555
  public function create_entry_vf($entry_id,$entry,$form){
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: crmperks, sbazzi
3
  Tags: contact form 7, contact form 7 database, contact form db, save contact form, wpforms database
4
  Requires at least: 3.8
5
  Tested up to: 5.6
6
- Stable tag: 1.1.6
7
- Version: 1.1.6
8
  Requires PHP: 5.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -232,6 +232,9 @@ Contact form 7 entries plugin allows you to save contact form 7 entries to local
232
 
233
  == Changelog ==
234
 
 
 
 
235
  = 1.1.6 =
236
  * fixed xss issue.
237
 
3
  Tags: contact form 7, contact form 7 database, contact form db, save contact form, wpforms database
4
  Requires at least: 3.8
5
  Tested up to: 5.6
6
+ Stable tag: 1.1.7
7
+ Version: 1.1.7
8
  Requires PHP: 5.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
232
 
233
  == Changelog ==
234
 
235
+ = 1.1.7 =
236
+ * fixed xss issue reported by Gaetano Perrone.
237
+
238
  = 1.1.6 =
239
  * fixed xss issue.
240