Plugin Directory

Changeset 2839760


Ignore:
Timestamp:
12/27/2022 10:40:32 AM (3 years ago)
Author:
baden03
Message:

security update. Now the plugin is escaping all shortcode attributes before output.

Location:
print-o-matic/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • print-o-matic/trunk/README.md

    r2742530 r2839760  
    55* Tags: print, print element, print shortcode, send to print, print button, print me, jQuery, print page, javascript, twinpictures, plugin oven
    66* Requires at least: 4.9
    7 * Tested up to: 6.0
    8 * Stable tag: 2.1.7
     7* Tested up to: 6.1.1
     8* Stable tag: 2.1.8
    99* License: GPLv2 or later
    1010* License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • print-o-matic/trunk/print-o-matic.php

    r2742530 r2839760  
    55Plugin URI: https://pluginoven.com/plugins/print-o-matic/
    66Description: Shortcode that adds a printer icon, allowing the user to print the post or a specified HTML element in the post.
    7 Version: 2.1.7
     7Version: 2.1.8
    88Author: twinpictures
    99Author URI: https://twinpictures.de
     
    1818class WP_Print_O_Matic {
    1919
    20     var $version = '2.1.7';
     20    var $version = '2.1.8';
    2121    var $domain = 'printomat';
    2222    var $options_name = 'WP_Print_O_Matic_options';
     
    221221        }
    222222        if($printicon && $title){
    223             $output = "<div class='printomatic ".$printstyle." ".$class."' id='".$id."' ".$alt_tag." data-print_target='".$target."'></div> <div class='printomatictext' id='".$id."' ".$alt_tag." data-print_target='".$target."'>".$title."</div><div style='clear: both;'></div>";
     223            $output = "<div class='printomatic ".esc_attr($printstyle)." ".esc_attr($class)."' id='".esc_attr($id)."' ".esc_attr($alt_tag)." data-print_target='".esc_attr($target)."'></div> <div class='printomatictext' id='".esc_attr($id)."' ".esc_attr($alt_tag)." data-print_target='".esc_attr($target)."'>".$title."</div><div style='clear: both;'></div>";
    224224        }
    225225        else if($printicon){
    226             $output = "<".$tag." class='printomatic ".$printstyle." ".$class."' id='".$id."' ".$alt_tag." data-print_target='".$target."'></".$tag.">";
     226            $output = "<".$tag." class='printomatic ".esc_attr($printstyle)." ".esc_attr($class)."' id='".esc_attr($id)."' ".esc_attr($alt_tag)." data-print_target='".esc_attr($target)."'></".$tag.">";
    227227        }
    228228        else if($title){
    229             $output = "<".$tag." class='printomatictext ".$class."' id='".$id."' ".$alt_tag." data-print_target='".$target."'>".$title."</".$tag.">";
     229            $output = "<".$tag." class='printomatictext ".esc_attr($class)."' id='".esc_attr($id)."' ".esc_attr($alt_tag)." data-print_target='".esc_attr($target)."'>".$title."</".$tag.">";
    230230        }
    231231        return  $output;
  • print-o-matic/trunk/readme.txt

    r2742530 r2839760  
    44Tags: print, print element, print shortcode, send to print, print button, print me, jQuery, print page, javascript, twinpictures, plugin oven
    55Requires at least: 4.9
    6 Tested up to: 6.0
    7 Stable tag: 2.1.7
     6Tested up to: 6.1.1
     7Stable tag: 2.1.8
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52
     53= 2.1.8 =
     54* security update. Now the plugin is escaping all shortcode attributes before output.
    5255
    5356= 2.1.7 =
     
    250253
    251254== Upgrade Notice ==
    252 * re-added method of passing default and print-trigger specific data to js script using wp_add_inline_script
    253 * added a bit of pause to allow for top and bot html to fully load
    254 * pause before print now is for adjustingg the amount of time to let the print preview render before reverting back to display layout
    255 
     255* security update. Now the plugin is escaping all shortcode attributes before output.
     256
Note: See TracChangeset for help on using the changeset viewer.