Plugin Directory

Changeset 3047156


Ignore:
Timestamp:
03/07/2024 01:51:05 PM (2 years ago)
Author:
leadinfo
Message:

Plugin relaase + security fixes

Location:
leadinfo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • leadinfo/trunk/leadinfo.class.php

    r1871250 r3047156  
    33    exit;
    44}
    5 
    65if (!class_exists('Leadinfo')) {
    76    class Leadinfo
     
    3231            $option = 'leadinfo_id';
    3332            $error = false;
    34             $save = isset($_GET['save']);
    3533            $name = get_option($option);
    3634
    37             if($save && isset($_GET['leadinfo_id'])) {
     35            if(isset($_GET['save']) && isset($_GET['leadinfo_id']) && current_user_can('manage_options') && check_admin_referer('leadinfo_tracking_form')) {
    3836                $matched = preg_match('/^(LI\-)([0-9A-Z]+)$/', $_GET['leadinfo_id']);
    3937
    4038                if($matched === 0) {
    41                     $save = false;
    4239                    $error = true;
    4340                } else {
    4441                    $name = $_GET['leadinfo_id'];
     42                    update_option($option, $name);
    4543                }
    46             }
    47 
    48             if ($save) {
    49                 update_option($option, $name);
    5044            }
    5145
     
    6458                    </ol>
    6559                    <form action="">
     60                    ' . wp_nonce_field('leadinfo_tracking_form') . '
    6661                        <input type="hidden" name="page" value="leadinfo">
    6762                        <div class="fieldwrap">
  • leadinfo/trunk/readme.txt

    r2925822 r3047156  
    33Tags: leadinfo, lead, leads, b2b
    44Requires at least: 3.0.1
    5 Tested up to: 6.2.2
     5Tested up to: 6.4.3
    66Stable tag: 1.0
    77License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.