⚡ NEW: Changeset/ - Uncensored 2025

Changeset 2981212


Ignore:
Timestamp:
10/19/2023 01:47:23 PM (2 years ago)
Author:
printfriendly
Message:

Update to version 5.5.3 from GitHub

Location:
printfriendly
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • printfriendly/tags/5.5.3/assets/js/admin.js

    r2858862 r2981212  
    261261
    262262    function custom_text_change(){
    263         $('#buttongroup3 span:not(.printandpdf)').text( $('#custom_text').val() );
    264         var newText = $('#custom-text-no').prop('checked') ? '' : $('#custom_text').val();
     263        // remove html tags
     264        var text = $('#custom_text').val().replace(/(<([^>]+)>)/gi, "");
     265        $('#buttongroup3 span:not(.printandpdf)').text( text );
     266        var newText = $('#custom-text-no').prop('checked') ? '' : text;
    265267        $('#printfriendly-text2').html( newText );
    266268        $('#printfriendly-text2').css('color','#' + $('#text_color').val());
  • printfriendly/tags/5.5.3/pf.php

    r2951152 r2981212  
    66    Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
    77    Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
    8     Version: 5.5.1
     8    Version: 5.5.2
    99    Author: Print, PDF, & Email by PrintFriendly
    1010    Author URI: https://www.printfriendly.com
     
    4141         * @var string
    4242         */
    43         var $plugin_version = '5.5.1';
     43        var $plugin_version = '5.5.2';
    4444        /**
    4545         * The hook, used for text domain as well as hooks on pages and in get requests for admin.
     
    733733            if (! isset($input['custom_text'])) {
    734734                $valid_input['custom_text'] = 'Print Friendly';
     735            } else {
     736                $valid_input['custom_text'] = $this->esc_html_if_needed($valid_input['custom_text']);
    735737            }
    736738
     
    16071609        }
    16081610
     1611        /**
     1612         * Previously, users with capability unfiltered_html were allowed to use raw HTML.
     1613         * But now, the input for all users is sanitized.
     1614         */
    16091615        function esc_html_if_needed($input)
    16101616        {
    1611             if (current_user_can('unfiltered_html')) {
    1612                 return $input;
    1613             } else {
    1614                 return esc_html($input);
    1615             }
     1617            $final = esc_html(strip_tags($input));
     1618            return $final;
    16161619        }
    16171620
  • printfriendly/tags/5.5.3/readme.txt

    r2951152 r2981212  
    145145== Changelog ==
    146146
     147= 5.5.2 =
     148* Fixed custom button input
     149
    147150= 5.5.1 =
    148151* Tested against 6.3
  • printfriendly/trunk/assets/js/admin.js

    r2858862 r2981212  
    261261
    262262    function custom_text_change(){
    263         $('#buttongroup3 span:not(.printandpdf)').text( $('#custom_text').val() );
    264         var newText = $('#custom-text-no').prop('checked') ? '' : $('#custom_text').val();
     263        // remove html tags
     264        var text = $('#custom_text').val().replace(/(<([^>]+)>)/gi, "");
     265        $('#buttongroup3 span:not(.printandpdf)').text( text );
     266        var newText = $('#custom-text-no').prop('checked') ? '' : text;
    265267        $('#printfriendly-text2').html( newText );
    266268        $('#printfriendly-text2').css('color','#' + $('#text_color').val());
  • printfriendly/trunk/pf.php

    r2951152 r2981212  
    66    Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
    77    Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
    8     Version: 5.5.1
     8    Version: 5.5.2
    99    Author: Print, PDF, & Email by PrintFriendly
    1010    Author URI: https://www.printfriendly.com
     
    4141         * @var string
    4242         */
    43         var $plugin_version = '5.5.1';
     43        var $plugin_version = '5.5.2';
    4444        /**
    4545         * The hook, used for text domain as well as hooks on pages and in get requests for admin.
     
    733733            if (! isset($input['custom_text'])) {
    734734                $valid_input['custom_text'] = 'Print Friendly';
     735            } else {
     736                $valid_input['custom_text'] = $this->esc_html_if_needed($valid_input['custom_text']);
    735737            }
    736738
     
    16071609        }
    16081610
     1611        /**
     1612         * Previously, users with capability unfiltered_html were allowed to use raw HTML.
     1613         * But now, the input for all users is sanitized.
     1614         */
    16091615        function esc_html_if_needed($input)
    16101616        {
    1611             if (current_user_can('unfiltered_html')) {
    1612                 return $input;
    1613             } else {
    1614                 return esc_html($input);
    1615             }
     1617            $final = esc_html(strip_tags($input));
     1618            return $final;
    16161619        }
    16171620
  • printfriendly/trunk/readme.txt

    r2951152 r2981212  
    145145== Changelog ==
    146146
     147= 5.5.2 =
     148* Fixed custom button input
     149
    147150= 5.5.1 =
    148151* Tested against 6.3
Note: See TracChangeset for help on using the changeset viewer.