Changeset 3341756
- Timestamp:
- 08/08/2025 04:30:12 PM (8 months ago)
- Location:
- terms-descriptions/trunk
- Files:
-
- 7 edited
-
ajax/td_terms_ajax.php (modified) (4 diffs)
-
includes/parsers/td_parser.php (modified) (1 diff)
-
includes/parsers/td_simple_parser.php (modified) (1 diff)
-
includes/td_admin_options.php (modified) (3 diffs)
-
includes/td_options.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
terms-descriptions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
terms-descriptions/trunk/ajax/td_terms_ajax.php
r3211640 r3341756 74 74 switch ($_POST['td_content_type']) { 75 75 case 'ext_link' : 76 $term_link = $_POST['td_link'];76 $term_link = htmlspecialchars($_POST['td_link']); 77 77 if (!preg_match('/^\w{3,5}\:\/\//i', $term_link)) { 78 78 $term_link = 'http://' . $term_link; 79 79 } 80 80 $link_title = $term_link; 81 $trimmedTitle = trim($_POST['td_title']);81 $trimmedTitle = htmlspecialchars(trim($_POST['td_title'])); 82 82 if ( isset( $_POST[ 'td_title' ] ) && !empty($trimmedTitle) ) { 83 83 $link_title = $trimmedTitle; … … 87 87 't_post_url' => $term_link, 88 88 't_post_type' => $_POST['td_content_type'], 89 't_term' => $ _POST['td_term'],89 't_term' => $term, 90 90 't_use_in_post_types' => serialize($_POST['t_use_in_post_types']), 91 91 ); … … 105 105 't_post_url' => $term_link, 106 106 't_post_type' => $_POST['td_content_type'], 107 't_term' => $ _POST['td_term'],107 't_term' => $term, 108 108 't_use_in_post_types' => serialize($_POST['t_use_in_post_types']), 109 109 ); … … 123 123 't_post_url' => $term_link, 124 124 't_post_type' => $_POST['td_content_type'], 125 't_term' => $ _POST['td_term'],125 't_term' => $term, 126 126 't_use_in_post_types' => serialize($_POST['t_use_in_post_types']), 127 127 ); -
terms-descriptions/trunk/includes/parsers/td_parser.php
r2754088 r3341756 28 28 $new_terms[ $i ] = $term; 29 29 $new_terms[ $i ][ 't_term' ] = $prepared_term; 30 $new_terms[ $i ][ 't_post_title' ] = htmlspecialchars($term[ 't_post_title' ]); 31 $new_terms[ $i ][ 't_post_url' ] = htmlspecialchars($term[ 't_post_url' ]); 30 32 } 31 33 } -
terms-descriptions/trunk/includes/parsers/td_simple_parser.php
r2902998 r3341756 127 127 //adding links to terms 128 128 foreach ( $matches[0] as $match ) { 129 //is the ira text before this occurrence?129 //is there a text before this occurrence? 130 130 $length = $match[1] - $start_pos; 131 131 if ( $length > 0 ) { -
terms-descriptions/trunk/includes/td_admin_options.php
r2902998 r3341756 1 1 <?php 2 3 require_once TD_DIR . 'includes/utils.php'; 4 2 5 /** 3 6 * This class creates Options page in Terms menu … … 41 44 $options = $terms_class->get_default_options(); 42 45 add_option( 'td_options', $options ); 46 } 47 48 foreach ($options as $key => $value) { 49 $options[$key] = preg_replace('/"/i', '"', $value); 43 50 } 44 51 ?> … … 318 325 $input[ 'additional_filters' ] = ''; 319 326 } 327 328 foreach ($input as $key => $value) { 329 $input[$key] = td_sanitize_XSS($value); 330 } 331 320 332 if ( false !== $old_options ) { 321 333 return array_merge( $old_options, $input ); -
terms-descriptions/trunk/includes/td_options.php
r2902998 r3341756 1 1 <?php 2 3 require_once TD_DIR . 'includes/utils.php'; 4 2 5 class SCO_TD_Options { 3 6 private $options = array(); … … 44 47 return false; 45 48 } 46 return $this->options[ $name ];49 return td_sanitize_XSS($this->options[ $name ]); 47 50 } 48 51 } -
terms-descriptions/trunk/readme.txt
r3211640 r3341756 1 1 === Terms descriptions === 2 2 Contributors: vladimir.s 3 Tags: post, page, links, plugin, link building, cross linking, seo3 Tags: post, page, links, link building, cross linking 4 4 Requires at least: 4.1 5 Tested up to: 6. 6.25 Tested up to: 6.8.2 6 6 Stable tag: trunk 7 License: GPLv3 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html 7 9 8 10 This plugin allows you to create list of terms and assign links to them. Plugin replaces terms occurrences in your posts with appropriate links. 11 12 == Description == 9 13 10 14 The main purpose of this plugin is easy link building. … … 79 83 == Changelog == 80 84 85 = 3.4.9 = 86 87 * Bug fixes: XSS vulnerability fixed 88 81 89 = 3.4.8 = 82 90 -
terms-descriptions/trunk/terms-descriptions.php
r3211640 r3341756 4 4 Plugin URI: https://simplecoding.org/plagin-wordpress-terms-descriptions 5 5 Description: This plugin allows you to create list of terms and assign links to them. Plugin automatically replaces terms occurrences in your posts with appropriate links. You can control the number of replacements. After activation you can create terms list on plugin administration page (Tools -> Terms Descriptions). 6 Version: 3.4. 86 Version: 3.4.9 7 7 Author: Vladimir Statsenko 8 8 Author URI: https://simplecoding.org
Note: See TracChangeset
for help on using the changeset viewer.