Plugin Directory

Changeset 3073079


Ignore:
Timestamp:
04/18/2024 11:46:30 AM (22 months ago)
Author:
pinpointe
Message:

Bump up Stable Tag and version; Sanitize , and data

Location:
pinpointe-form-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pinpointe-form-integration/trunk/includes/pinpointe-service.class.php

    r3070994 r3073079  
    101101                $post_data = $dom_output->saveXML($dom_output, LIBXML_NOEMPTYTAG);
    102102
    103                 $file = WP_PLUGIN_DIR."/pinpointe-form-integration/test.xml";
     103                $file = dirname(__FILE__, 2) . DIRECTORY_SEPARATOR. "test.xml";
    104104                $dom_output->save($file);
    105105               
  • pinpointe-form-integration/trunk/pinpointe-signup-form.php

    r3070994 r3073079  
    108108
    109109                    // Load scripts/styles conditionally
    110                     if (isset($_SERVER['QUERY_STRING']) && preg_match('/page=pinpointe/i', $_SERVER['QUERY_STRING']) && !preg_match('/page=pinpointe_lite/i', $_SERVER['QUERY_STRING'])) {
     110                    $query_string = filter_input(INPUT_SERVER, 'QUERY_STRING', FILTER_SANITIZE_STRING);
     111                    if (isset($query_string) && preg_match('/page=pinpointe/i', $query_string) && !preg_match('/page=pinpointe_lite/i', $query_string)) {
    111112                        add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_scripts_and_styles'));
    112113                     }
     
    511512        public function get_current_tab($is_dash = false)
    512513        {
    513             $tab = (isset($_GET['tab']) && $this->page_has_tab($_GET['tab'])) ? preg_replace('/-/', '_', $_GET['tab']) : $this->get_default_tab();
     514            $tab = (isset($_GET['tab']) && $this->page_has_tab(sanitize_text_field($_GET['tab']))) ? preg_replace('/-/', '_', sanitize_text_field($_GET['tab'])) : $this->get_default_tab();
    514515
    515516            return (!$is_dash) ? $tab : preg_replace('/_/', '-', $tab);
     
    14091410        public function options_validate($input)
    14101411        {
    1411             $current_tab = isset($_POST['current_tab']) ? $_POST['current_tab'] : 'settings';
     1412            $current_tab = isset($_POST['current_tab']) ? sanitize_text_field($_POST['current_tab']) : 'settings';
    14121413            $output = $original = $this->get_options();
    14131414
     
    46814682                }
    46824683                else {
    4683                     $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
     4684                    $ip_address = sanitize_text_field($_SERVER['HTTP_X_FORWARDED_FOR']);
    46844685                }
    46854686            }
    46864687            else {
    4687                 $ip_address =$_SERVER['REMOTE_ADDR'];
     4688                $ip_address = sanitize_text_field($_SERVER['REMOTE_ADDR']);
    46884689            }
    46894690           
  • pinpointe-form-integration/trunk/readme.txt

    r3070994 r3073079  
    44Requires at least: 3.5
    55Tested up to: 6.4.2
    6 Stable tag: 1.5
     6Stable tag: 1.6
    77Requires PHP: 5.4
    88License: GPLv3 or later
Note: See TracChangeset for help on using the changeset viewer.