Plugin Directory

Changeset 3103047


Ignore:
Timestamp:
06/15/2024 10:55:03 AM (22 months ago)
Author:
ironikus
Message:

introduce v2.2.2

Location:
email-encoder-bundle
Files:
61 added
6 edited

Legend:

Unmodified
Added
Removed
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-run-admin.php

    r3019206 r3103047  
    179179
    180180            if( isset( $_POST[ $this->settings_key ] ) && is_array( $_POST[ $this->settings_key ] ) ){
     181
     182                //Strip duplicate slashes before saving
     183                foreach( $_POST[ $this->settings_key ] as $k => $v ){
     184                    if( is_string( $v ) ){
     185                        $_POST[ $this->settings_key ][ $k ] = stripslashes( $v );
     186                    }
     187                }
     188
    181189                $check = update_option( $this->settings_key, $_POST[ $this->settings_key ] );
    182190                if( $check ){
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-run.php

    r3033889 r3103047  
    491491        }
    492492
     493        $content = wp_kses( html_entity_decode( $content ), $allowed_attr_html );
     494
    493495        if( isset( $atts['do_shortcode'] ) && $atts['do_shortcode'] === 'yes' ){
    494496            $content = do_shortcode( $content );
    495497        }
    496 
    497         $content = wp_kses( html_entity_decode( $content ), $allowed_attr_html );
    498498
    499499        switch( $method ){
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-settings.php

    r3033889 r3103047  
    216216                'dir' => array(),
    217217            ),
     218            'br' => array(),
    218219            'strong' => array(),
    219220            'center' => array(),
     
    604605            $values = $default_values;
    605606        }
    606 
     607       
    607608        //Bakwards compatibility
    608609        if( ! isset( $values['protect_using'] ) ){
  • email-encoder-bundle/trunk/core/includes/partials/widgets/main.php

    r2575492 r3103047  
    2929
    3030                    $is_checked = ( $setting['type'] == 'checkbox' && ( $main_settings_value === 1 || $main_settings_value === '1' ) ) ? 'checked' : '';
    31                     $value = ( $setting['type'] != 'checkbox' && $setting['type'] != 'multi-input' ) ? $main_settings_value : '1';
     31                    $value = ( $setting['type'] != 'checkbox' && $setting['type'] != 'multi-input' ) ? htmlspecialchars( $main_settings_value ) : '1';
    3232
    3333                    ?>
     
    5252
    5353                                            $mi_is_checked = ( $setting['input-type'] == 'checkbox' && ( isset( $data['value'] ) && ( $data['value'] === 1 || $data['value'] === '1' ) ) ) ? 'checked' : '';
    54                                             $mi_value = ( $setting['input-type'] != 'checkbox' ) ? $data['value'] : '1';
     54                                            $mi_value = ( $setting['input-type'] != 'checkbox' ) ? htmlspecialchars( $data['value'] ) : '1';
    5555                                            $si_name = $si_key;
    5656
  • email-encoder-bundle/trunk/email-encoder-bundle.php

    r3033889 r3103047  
    22 /**
    33 * Plugin Name:    Email Encoder - Protect Email Addresses
    4  * Version:        2.2.1
     4 * Version:        2.2.2
    55 * Plugin URI:     https://wordpress.org/plugins/email-encoder-bundle/
    66 * Description:    Protect email addresses on your site and hide them from spambots. Easy to use & flexible.
     
    2323
    2424// Plugin version.
    25 define( 'EEB_VERSION',        '2.2.1' );
     25define( 'EEB_VERSION',        '2.2.2' );
    2626
    2727// Determines if the plugin is loaded
  • email-encoder-bundle/trunk/readme.txt

    r3033889 r3103047  
    44Requires at least: 4.7
    55Requires PHP: 5.1
    6 Tested up to: 6.4.3
    7 Stable tag: 2.2.1
     6Tested up to: 6.5.4
     7Stable tag: 2.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    126126
    127127== Changelog ==
     128
     129= 2.2.2: June 15, 2024 =
     130* Tweak: Minor Security Patch (Multisite)
     131* Tweak: Add <br> tags to the allowed HTML for shortcodes
     132* Tweak: Apply content filtering before executing shortcodes for [eeb_protect_content]
    128133
    129134= 2.2.1: February 11, 2024 =
Note: See TracChangeset for help on using the changeset viewer.