Changeset 3302588
- Timestamp:
- 05/29/2025 03:02:57 AM (7 months ago)
- Location:
- ninjateam-telegram/trunk
- Files:
-
- 3 edited
-
blocks/src/init.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
telegram.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ninjateam-telegram/trunk/blocks/src/init.php
r2508342 r3302588 122 122 $btn_icon_or_image = ''; 123 123 if (empty($attributes['imageUrl'])) { 124 $btn_icon_or_image = '<div class="tele__btn_icon"><img src="' . NTA_TELEGRAM_PLUGIN_URL . 'assets/img/telegram_logo.svg' . '" alt=' . $attributes['imageAlt'] . '/></div>';124 $btn_icon_or_image = '<div class="tele__btn_icon"><img src="' . esc_attr(NTA_TELEGRAM_PLUGIN_URL) . 'assets/img/telegram_logo.svg" alt="' . esc_attr($attributes['imageAlt']) . '"/></div>'; 125 125 } else { 126 $btn_icon_or_image = '<div class="tele__cs_img"><div class="tele__cs_img_wrap" style="background: url(' . $attributes['imageUrl']. ') center center no-repeat; background-size: cover;"></div></div>';126 $btn_icon_or_image = '<div class="tele__cs_img"><div class="tele__cs_img_wrap" style="background: url(' . esc_attr($attributes['imageUrl']) . ') center center no-repeat; background-size: cover;"></div></div>'; 127 127 } 128 128 $html = ''; 129 129 $html .= '<div style="margin: 30px 0 30px;">'; 130 $html .= '<a target="_blank" href="https://t.me/' . $attributes['username'] . '" class="tele__button ' . $btnStyleClass . ' tele__stt_online ' . $avatarClass . '" style="background-color: ' . $attributes['buttonColor'] . '; color: ' . $attributes['textColor']. '">';131 $html .= $btn_icon_or_image;130 $html .= '<a target="_blank" href="https://t.me/' . esc_attr($attributes['username']) . '" class="tele__button ' . esc_attr($btnStyleClass) . ' tele__stt_online ' . esc_attr($avatarClass) . '" style="background-color: ' . esc_attr($attributes['buttonColor']) . '; color: ' . esc_attr($attributes['textColor']) . '">'; 131 $html .= wp_kses_post($btn_icon_or_image); 132 132 $html .= '<div class="tele__btn_txt">'; 133 133 if (!empty($attributes['buttonTitle'])) { 134 134 $html .= '<div class="tele__cs_info">'; 135 $html .= '<div class="tele__cs_name" style="color: ' . $attributes['textColor'] . '">' . $attributes['buttonTitle']. '</div>';135 $html .= '<div class="tele__cs_name" style="color: ' . esc_attr($attributes['textColor']) . '">' . esc_html($attributes['buttonTitle']) . '</div>'; 136 136 $html .= '<div class="tele__cs_status">Online</div></div>'; 137 137 } 138 $html .= '<div class="tele__btn_title">' . $attributes['buttonInfo']. '</div></div></a></div>';138 $html .= '<div class="tele__btn_title">' . esc_html($attributes['buttonInfo']) . '</div></div></a></div>'; 139 139 return $html; 140 140 } -
ninjateam-telegram/trunk/readme.txt
r3281367 r3302588 4 4 Requires at least: 3.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 16 Stable tag: 1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 104 104 == Changelog == 105 105 106 = May 29, 2025 - Version 1.2 = 107 - Fixed: Stored Cross-Site Scripting via Username Parameter 108 106 109 = Dec 18, 2024 - Version 1.1 = 107 110 - Fixed: Security (Stored Cross-Site Scripting) -
ninjateam-telegram/trunk/telegram.php
r3209678 r3302588 5 5 * Plugin URI: https://ninjateam.org/wordpress-telegram-chat 6 6 * Description: Integrate your Telegram experience directly into your website. This is one of the best way to connect and interact with your customer. 7 * Version: 1. 17 * Version: 1.2 8 8 * Author: NinjaTeam 9 9 * Author URI: https://ninjateam.org … … 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 define( 'NTA_TELEGRAM_VERSION', '1. 1' );17 define( 'NTA_TELEGRAM_VERSION', '1.2' ); 18 18 define( 'NTA_TELEGRAM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 19 19 define( 'NTA_TELEGRAM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 21 21 22 22 23 if ( file_exists( dirname( __FILE__ ). '/includes/Review.php' ) ) {24 require_once dirname( __FILE__ ). '/includes/Review.php';23 if ( file_exists( __DIR__ . '/includes/Review.php' ) ) { 24 require_once __DIR__ . '/includes/Review.php'; 25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.