Changeset 3232575
- Timestamp:
- 01/31/2025 11:41:30 AM (14 months ago)
- Location:
- leadboxer
- Files:
-
- 4 edited
- 3 copied
-
tags/1.4 (copied) (copied from leadboxer/trunk)
-
tags/1.4/leadboxer.class.php (modified) (3 diffs)
-
tags/1.4/leadboxer.php (copied) (copied from leadboxer/trunk/leadboxer.php) (2 diffs)
-
tags/1.4/readme.txt (copied) (copied from leadboxer/trunk/readme.txt) (2 diffs)
-
trunk/leadboxer.class.php (modified) (3 diffs)
-
trunk/leadboxer.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
leadboxer/tags/1.4/leadboxer.class.php
r1838239 r3232575 14 14 public static function register_plugin_scripts() { 15 15 16 $dataset = get_option('leadboxer_dataset');16 $dataset = sanitize_text_field(get_option('leadboxer_dataset')); 17 17 if(!$dataset) $dataset = 'test.com'; 18 18 19 19 if ( !is_admin() ) { 20 wp_enqueue_script( 'leadboxerscript', '//script.leadboxer.com/?dataset=' . $dataset, array(), null, true);20 wp_enqueue_script('leadboxerscript', esc_url('//script.leadboxer.com/?dataset=' . $dataset), array(), null, true); 21 21 } 22 22 } … … 32 32 33 33 $option = 'leadboxer_dataset'; 34 $save = isset($_GET['save']) ? $_GET['save']: '';35 $name = isset($_GET['dataset']) ? $_GET['dataset']: get_option($option);34 $save = isset($_GET['save']) ? sanitize_text_field($_GET['save']) : ''; 35 $name = isset($_GET['dataset']) ? sanitize_text_field($_GET['dataset']) : get_option($option); 36 36 37 37 if($save) update_option($option, $name); … … 51 51 <div class="fieldwrap"> 52 52 <label class="" for="dataset">' . __( "Enter your dataset ID here",'leadboxer') . '</label><br /> 53 <input type="text" name="dataset" size="80" value="' . $name . '" id="dataset" spellcheck="false" autocomplete="off"/>53 <input type="text" name="dataset" size="80" value="' . esc_attr($name) . '" id="dataset" spellcheck="false" autocomplete="off"/> 54 54 </div> 55 55 -
leadboxer/tags/1.4/leadboxer.php
r3217546 r3232575 4 4 * Plugin URI: https://wordpress.org/plugins/leadboxer/ 5 5 * Description: LeadBoxer Plugin 6 * Version: 1. 36 * Version: 1.4 7 7 * Author: LeadBoxer 8 8 * Author URI: https://wordpress.org/plugins/leadboxer/ … … 67 67 function leadboxer_settings_link($links) { 68 68 69 $settings_link = '<a href= ' . admin_url("admin.php?page=leadboxer>Settings") . '</a>';69 $settings_link = '<a href="' . esc_url(admin_url('admin.php?page=leadboxer')) . '">Settings</a>'; 70 70 array_unshift($links, $settings_link); 71 71 return $links; -
leadboxer/tags/1.4/readme.txt
r3209823 r3232575 4 4 Requires at least: 3.0.1 5 5 Tested up to: 6.7 6 Stable tag: 1. 36 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 == Changelog == 40 40 41 = 1.4 = 42 * Updated code to latest security standards 43 41 44 = 1.3 = 42 45 * Updated to latest Wordpress version -
leadboxer/trunk/leadboxer.class.php
r1838239 r3232575 14 14 public static function register_plugin_scripts() { 15 15 16 $dataset = get_option('leadboxer_dataset');16 $dataset = sanitize_text_field(get_option('leadboxer_dataset')); 17 17 if(!$dataset) $dataset = 'test.com'; 18 18 19 19 if ( !is_admin() ) { 20 wp_enqueue_script( 'leadboxerscript', '//script.leadboxer.com/?dataset=' . $dataset, array(), null, true);20 wp_enqueue_script('leadboxerscript', esc_url('//script.leadboxer.com/?dataset=' . $dataset), array(), null, true); 21 21 } 22 22 } … … 32 32 33 33 $option = 'leadboxer_dataset'; 34 $save = isset($_GET['save']) ? $_GET['save']: '';35 $name = isset($_GET['dataset']) ? $_GET['dataset']: get_option($option);34 $save = isset($_GET['save']) ? sanitize_text_field($_GET['save']) : ''; 35 $name = isset($_GET['dataset']) ? sanitize_text_field($_GET['dataset']) : get_option($option); 36 36 37 37 if($save) update_option($option, $name); … … 51 51 <div class="fieldwrap"> 52 52 <label class="" for="dataset">' . __( "Enter your dataset ID here",'leadboxer') . '</label><br /> 53 <input type="text" name="dataset" size="80" value="' . $name . '" id="dataset" spellcheck="false" autocomplete="off"/>53 <input type="text" name="dataset" size="80" value="' . esc_attr($name) . '" id="dataset" spellcheck="false" autocomplete="off"/> 54 54 </div> 55 55 -
leadboxer/trunk/leadboxer.php
r3217546 r3232575 4 4 * Plugin URI: https://wordpress.org/plugins/leadboxer/ 5 5 * Description: LeadBoxer Plugin 6 * Version: 1. 36 * Version: 1.4 7 7 * Author: LeadBoxer 8 8 * Author URI: https://wordpress.org/plugins/leadboxer/ … … 67 67 function leadboxer_settings_link($links) { 68 68 69 $settings_link = '<a href= ' . admin_url("admin.php?page=leadboxer>Settings") . '</a>';69 $settings_link = '<a href="' . esc_url(admin_url('admin.php?page=leadboxer')) . '">Settings</a>'; 70 70 array_unshift($links, $settings_link); 71 71 return $links; -
leadboxer/trunk/readme.txt
r3209823 r3232575 4 4 Requires at least: 3.0.1 5 5 Tested up to: 6.7 6 Stable tag: 1. 36 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 == Changelog == 40 40 41 = 1.4 = 42 * Updated code to latest security standards 43 41 44 = 1.3 = 42 45 * Updated to latest Wordpress version
Note: See TracChangeset
for help on using the changeset viewer.