Plugin Directory

Changeset 3033889


Ignore:
Timestamp:
02/10/2024 07:14:49 AM (2 years ago)
Author:
ironikus
Message:

introduce v2.2.1

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

Legend:

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

    r2994384 r3033889  
    268268            $sanitized_name = sanitize_key( $match[1] ); // Sanitize the attribute name
    269269            $sanitized_value = esc_attr( trim( $match[2], '"\'' ) ); // Remove quotes and escape the value
     270            $sanitized_value = str_replace( '\\', '', $sanitized_value ); // Remove quotes and escape the value
    270271
    271272            // Reconstruct the attribute
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-run.php

    r3020142 r3033889  
    431431    public function protect_content_shortcode( $atts, $content = null ){
    432432        $protect = (int) EEB()->settings->get_setting( 'protect', true );
     433        $allowed_attr_html = EEB()->settings->get_safe_html_attr();
    433434        $protect_using = (string) EEB()->settings->get_setting( 'protect_using', true );
    434435        $protection_activated = ( $protect === 1 || $protect === 2 ) ? true : false;
     
    441442            $protect_using = sanitize_title( $atts['protect_using'] );
    442443        }
     444
     445        //Filter content first
     446        $content = wp_kses( html_entity_decode( $content ), $allowed_attr_html );
    443447
    444448        $content = EEB()->validate->filter_content( $content, $protect_using );
     
    472476
    473477        $original_content = $content;
     478        $allowed_attr_html = EEB()->settings->get_safe_html_attr();
    474479        $show_encoded_check = (string) EEB()->settings->get_setting( 'show_encoded_check', true );
    475480
     
    489494            $content = do_shortcode( $content );
    490495        }
     496
     497        $content = wp_kses( html_entity_decode( $content ), $allowed_attr_html );
    491498
    492499        switch( $method ){
     
    554561        } else {
    555562            $display = wp_kses( html_entity_decode( $atts['display'] ), $allowed_attr_html );
     563            $display = str_replace( '\\', '', $display ); //Additionally sanitize unicode
    556564        }
    557565       
     
    560568        } else {
    561569            $noscript = wp_kses( html_entity_decode( $atts['noscript'] ), $allowed_attr_html );
     570            $noscript = str_replace( '\\', '', $noscript ); //Additionally sanitize unicode
    562571        }
    563572       
     
    624633        $hash = (string) $_GET['eeb_hash'];
    625634        $secret = EEB()->settings->get_email_image_secret();
     635
     636        if( ! function_exists( 'imagefontwidth' ) ){
     637            wp_die( __('GD Library Not Enabled. Please enable it first.', 'email-encoder-bundle') );
     638        }
    626639
    627640        if( EEB()->validate->generate_email_signature( $email, $secret ) !== $hash ){
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-settings.php

    r3020142 r3033889  
    148148     */
    149149    private $email_image_secret;
     150
     151    /**
     152     * The template tags
     153     *
     154     * @var string
     155     * @since 2.2.1
     156     */
     157    private $template_tags;
    150158
    151159    /**
  • email-encoder-bundle/trunk/core/includes/classes/class-email-encoder-bundle-validate.php

    r3020142 r3033889  
    992992    public function generate_email_image_url( $email ) {
    993993       
    994         if( empty( $email ) || ! is_email( $email ) ){
     994        if( ! function_exists( 'imagefontwidth' ) || empty( $email ) || ! is_email( $email ) ){
    995995            return false;
    996996        }
  • email-encoder-bundle/trunk/core/includes/integrations/loader.php

    r2930022 r3033889  
    2525            'oxygen_builder' => 'oxygen_builder.php',
    2626            'the_events_calendar' => 'the_events_calendar.php',
     27            'wpml' => 'wpml.php',
    2728        );
    2829
  • email-encoder-bundle/trunk/email-encoder-bundle.php

    r3020142 r3033889  
    22 /**
    33 * Plugin Name:    Email Encoder - Protect Email Addresses
    4  * Version:        2.2.0
     4 * Version:        2.2.1
    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.0' );
     25define( 'EEB_VERSION',        '2.2.1' );
    2626
    2727// Determines if the plugin is loaded
  • email-encoder-bundle/trunk/readme.txt

    r3020142 r3033889  
    44Requires at least: 4.7
    55Requires PHP: 5.1
    6 Tested up to: 6.4.2
    7 Stable tag: 2.2.0
     6Tested up to: 6.4.3
     7Stable tag: 2.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    126126
    127127== Changelog ==
     128
     129= 2.2.1: February 11, 2024 =
     130* Tweak: Security Patch
     131* Tweak: Provide compatibility if GD Library Not Enabled
     132* Tweak: Compatibility with WP 6.4.3
     133* Fix: Fixed some PHP 8.2+ notices
     134* Fix: Fixed Automatic Translations for WPML: https://wpml.org/errata/email-encoder-protect-email-addresses-and-phone-numbers-there-is-a-problem-connecting-to-automatic-translation/
    128135
    129136= 2.2.0: January 11, 2024 =
Note: See TracChangeset for help on using the changeset viewer.