FormGet Contact Form - Version 5.3.1

Version Description

Download this release

Release Info

Developer PankajAgarwal
Plugin Icon 128x128 FormGet Contact Form
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3 to 5.3.1

Files changed (3) hide show
  1. index.php +5 -1
  2. js/fg_script.js +4 -3
  3. readme.txt +4 -1
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
- Version: 5.3
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
@@ -289,6 +289,7 @@ function cf_setting_page() {
289
 
290
  function cf_embeded_script() {
291
  wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'));
 
292
 
293
  }
294
 
@@ -297,6 +298,9 @@ if (isset($_GET['page']) == 'cf_page') {
297
  }
298
 
299
  function cf_text_ajax_process_request() {
 
 
 
300
  $text_value = $_POST['value'];
301
  // $val = $_POST['value_hide'];
302
  $page_id = $_POST['page_id'];
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
+ Version: 5.3.1
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
289
 
290
  function cf_embeded_script() {
291
  wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'));
292
+ wp_localize_script('embeded_script', 'script_call', array('ajaxurl' => admin_url('admin-ajax.php'),'aj_nonce' => wp_create_nonce( 'script-nonce' )));
293
 
294
  }
295
 
298
  }
299
 
300
  function cf_text_ajax_process_request() {
301
+ if(!check_ajax_referer('script-nonce', 'aj_nonce') && !is_user_logged_in() && !current_user_can( 'manage_options' )){
302
+ return;
303
+ }
304
  $text_value = $_POST['value'];
305
  // $val = $_POST['value_hide'];
306
  $page_id = $_POST['page_id'];
js/fg_script.js CHANGED
@@ -81,9 +81,10 @@ jQuery(document).ready(function() {
81
  var data = {
82
  action: 'request_response',
83
  value: text_value,
84
- page_id: checkedValues
 
85
  };
86
- jQuery.post(ajaxurl, data, function(response) {
87
  if (response == 1) {
88
  if (jQuery("#error").length)
89
  jQuery("#error").remove();
@@ -120,7 +121,7 @@ jQuery(document).ready(function() {
120
  action: 'request_response',
121
  value_hide: "hide"
122
  };
123
- jQuery.post(ajaxurl, hide_data, function(response) {
124
  if (response) {
125
  //alert(response);
126
  jQuery('.fg_notice_div').hide();
81
  var data = {
82
  action: 'request_response',
83
  value: text_value,
84
+ page_id: checkedValues,
85
+ aj_nonce: script_call.aj_nonce
86
  };
87
+ jQuery.post(script_call.ajaxurl, data, function(response) {
88
  if (response == 1) {
89
  if (jQuery("#error").length)
90
  jQuery("#error").remove();
121
  action: 'request_response',
122
  value_hide: "hide"
123
  };
124
+ jQuery.post(script_call.ajaxurl, hide_data, function(response) {
125
  if (response) {
126
  //alert(response);
127
  jQuery('.fg_notice_div').hide();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, Responsive Contact Form, contact us, request form, contact button, drag and drop contact form file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
  Tested up to: 4.0.1
6
- Stable tag: 5.3
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
@@ -164,6 +164,9 @@ When you create account in FormGet you automatically get support desk. All the e
164
 
165
 
166
  == Changelog ==
 
 
 
167
  = Version 5.3 =
168
  * Easy to use formget extension links added.
169
 
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, Responsive Contact Form, contact us, request form, contact button, drag and drop contact form file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
  Tested up to: 4.0.1
6
+ Stable tag: 5.3.1
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
164
 
165
 
166
  == Changelog ==
167
+ = Version 5.3.1 =
168
+ * Persistent XSS issue fixed.
169
+
170
  = Version 5.3 =
171
  * Easy to use formget extension links added.
172