Plugin Directory

Changeset 2715200


Ignore:
Timestamp:
04/27/2022 04:17:21 AM (4 years ago)
Author:
codup
Message:

#Issues Resolved From Wordpress.org Email

Location:
codup-wp-freshsales
Files:
34 added
4 edited

Legend:

Unmodified
Added
Removed
  • codup-wp-freshsales/trunk/includes/class-codup-freshsales-cf.php

    r2701025 r2715200  
    114114         */
    115115        public function validate_freshsales_fields( $validator ) {
    116             if ( wp_verify_nonce( ( filter_input( INPUT_POST, 'wpcf7-freshsales', 'enable' ) != null ) && sanitize_text_field( wp_unslash( isset( $_POST['wpcf7-freshsales']['enable'] ) ) ) == 'yes' && isset( $_POST['wpcf7-freshsales']['last_name'] ) && empty( sanitize_text_field( wp_unslash( $_POST['wpcf7-freshsales']['last_name'] ) ) ) ) ) {
     116
     117            if ( wp_verify_nonce( ( filter_input( INPUT_POST, 'wpcf7-freshsales', FILTER_SANITIZE_STRING  ) != null ) && sanitize_text_field( wp_unslash( isset( $_POST['wpcf7-freshsales']['enable'] ) ) ) == 'yes' && isset( $_POST['wpcf7-freshsales']['last_name'] ) && empty( sanitize_text_field( wp_unslash( $_POST['wpcf7-freshsales']['last_name'] ) ) ) ) ) {
    117118                $validator->add_error( 'freshsales.last_name', 100, array( 'message' => __( 'Last name is required.', 'codup-wp-freshsales' ) ) );
    118119            }
  • codup-wp-freshsales/trunk/includes/class-codup-freshsales-gf.php

    r2701025 r2715200  
    3939
    4040        function populate_referral_refurl( $value ) {
    41             $refurl = $_SERVER['HTTP_REFERER'];
     41            $refurl = sanitize_text_field($_SERVER['HTTP_REFERER']);
    4242            return esc_url_raw( $refurl );
    4343        }
    4444        function populate_referral_embdurl( $value ) {
    45             $embdurl   = $_SERVER['REQUEST_URI'];
    46             $http_name = $_SERVER['HTTP_HOST'];
     45            $embdurl   = sanitize_text_field($_SERVER['REQUEST_URI']);
     46            $http_name = sanitize_text_field($_SERVER['HTTP_HOST']);
    4747            $total     = $http_name . $embdurl;
    4848            return esc_url_raw( $embdurl );
    4949        }
    5050        function my_custom_population_medium( $value ) {
    51             $utm_medium = $_GET['utm_medium'];
     51            $utm_medium = sanitize_text_field($_GET['utm_medium']);
    5252            return $utm_medium;
    5353        }
    5454        function my_custom_population_term( $value ) {
    55             $utm_term = $_GET['utm_term'];
     55            $utm_term = sanitize_text_field($_GET['utm_term']);
    5656            return $utm_term;
    5757        }
    5858        function my_custom_population_content( $value ) {
    59             $utm_content = $_GET['utm_content'];
     59            $utm_content = sanitize_text_field($_GET['utm_content']);
    6060            return $utm_content;
    6161        }
    6262        function my_custom_population_campaign( $value ) {
    63             $utm_campaign = $_GET['utm_campaign'];
     63            $utm_campaign = sanitize_text_field($_GET['utm_campaign']);
    6464            return $utm_campaign;
    6565        }
    6666        public function my_custom_population_source() {
    67             $utm_source = $_GET['utm_source'];
     67            $utm_source = sanitize_text_field($_GET['utm_source']);
    6868            return $utm_source;
    6969        }
  • codup-wp-freshsales/trunk/readme.txt

    r2701025 r2715200  
    44Requires at least: 4.4
    55Tested up to: 5.9.2
     6Stable tag: 1.3.2.5
    67License: GPLv2 or later
    78
  • codup-wp-freshsales/trunk/wp-freshsales-integration.php

    r2701025 r2715200  
    33 * Plugin Name: WordPress to Freshsales Integration
    44 * Description: Create Leads on formidable forms submission , contact form 7 submission and gravity forms submission.
    5  * Version:     1.3.2.4
     5 * Version:     1.3.2.5
    66 * Author:      codup.io
    77 * Author URI:  http://codup.io/
Note: See TracChangeset for help on using the changeset viewer.