Changeset 2980695
- Timestamp:
- 10/18/2023 01:50:03 PM (2 years ago)
- Location:
- modern-footnotes
- Files:
-
- 16 added
- 2 edited
-
tags/1.4.17 (added)
-
tags/1.4.17/license.txt (added)
-
tags/1.4.17/mce-button.png (added)
-
tags/1.4.17/modern-footnotes.block-editor.js (added)
-
tags/1.4.17/modern-footnotes.block-editor.min.js (added)
-
tags/1.4.17/modern-footnotes.js (added)
-
tags/1.4.17/modern-footnotes.mce-button.js (added)
-
tags/1.4.17/modern-footnotes.mce-button.min.js (added)
-
tags/1.4.17/modern-footnotes.min.js (added)
-
tags/1.4.17/modern-footnotes.php (added)
-
tags/1.4.17/readme.txt (added)
-
tags/1.4.17/styles.block-editor-button.min.css (added)
-
tags/1.4.17/styles.css (added)
-
tags/1.4.17/styles.mce-button.css (added)
-
tags/1.4.17/styles.mce-button.min.css (added)
-
tags/1.4.17/styles.min.css (added)
-
trunk/modern-footnotes.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modern-footnotes/trunk/modern-footnotes.php
r2879914 r2980695 5 5 Text Domain: modern-footnotes 6 6 Description: Add inline footnotes to your post via the footnote icon on the toolbar for editing posts and pages. Or, use the [mfn] or [modern_footnote] shortcodes [mfn]like this[/mfn]. 7 Version: 1.4.1 67 Version: 1.4.17 8 8 Author: Prism Tech Studios 9 9 Author URI: http://prismtechstudios.com/ … … 15 15 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 16 16 17 $modern_footnotes_version = '1.4.1 6';17 $modern_footnotes_version = '1.4.17'; 18 18 19 19 $modern_footnotes_options = get_option('modern_footnotes_settings'); … … 140 140 // If additional space-seperated classes are provided to an individual footnote using [mfn class="some-class"], they are added to the footnote 141 141 if (isset($atts['class'])) { 142 $additional_classes .= $atts['class'].' ';142 $additional_classes .= esc_attr($atts['class']).' '; 143 143 } 144 144 … … 166 166 if (isset($atts['referencenumber'])) { 167 167 $display_number = $atts['referencenumber']; 168 $additional_attributes = 'refnum="' . $display_number. '"';168 $additional_attributes = 'refnum="' . esc_attr($display_number) . '"'; 169 169 } else if (!isset($modern_footnotes_all_posts_data[$scope_id]) || count($modern_footnotes_all_posts_data[$scope_id]['used_reference_numbers']) == 0) { 170 170 $display_number = 1; … … 199 199 200 200 //create a unique ID to use in HTML 201 $content_id = "mfn-content-" . $scope_id . '-' . preg_replace('/[^a-zA-Z0-9-_]/i', '', $display_number);201 $content_id = "mfn-content-" . $scope_id . '-' . preg_replace('/[^a-zA-Z0-9-_]/i', '', esc_attr($display_number)); 202 202 203 203 if (isset($atts['for_rss_feed']) && $atts['for_rss_feed']) { 204 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '">' . $display_number. '</sup>'; // only display the superscript for RSS feeds204 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '">' . esc_html($display_number) . '</sup>'; // only display the superscript for RSS feeds 205 205 } else { 206 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '" data-mfn="' . str_replace('"',"\\\"", $display_number) . '" data-mfn-post-scope="' . $scope_id . '">' .206 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '" data-mfn="' . str_replace('"',"\\\"", esc_attr($display_number)) . '" data-mfn-post-scope="' . $scope_id . '">' . 207 207 '<a href="javascript:void(0)" ' . $additional_attributes . ' role="button" aria-pressed="false" aria-describedby="' . $content_id . '">' . $display_number . '</a>' . 208 208 '</sup>' . -
modern-footnotes/trunk/readme.txt
r2889657 r2980695 3 3 Tags: footnotes, citations, inline footnotes, inline citations, mobile-friendly citations, mobile-friendly footnotes 4 4 Requires at least: 4.6 5 Tested up to: 6. 26 Stable tag: 1.4.1 65 Tested up to: 6.3.2 6 Stable tag: 1.4.17 7 7 License: GNU General Public License v2 8 8 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html … … 84 84 == Changelog == 85 85 86 = 1.4.17 = 87 * Security fix for XSS issue. Thanks to cleantalk and Dmitrii Ignatyev for identifying the issue. 88 86 89 = 1.4.16 = 87 90 * Security fix for XSS issue. Thanks to Rio Darmawan for identifying the issue.
Note: See TracChangeset
for help on using the changeset viewer.