Changeset 2923581
- Timestamp:
- 06/08/2023 05:44:10 PM (3 years ago)
- Location:
- lana-email-logger/trunk
- Files:
-
- 4 edited
-
assets/css/lana-email-logger-admin.css (modified) (1 diff)
-
includes/class-lana-email-logger-logs-list-table.php (modified) (5 diffs)
-
lana-email-logger.php (modified) (4 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lana-email-logger/trunk/assets/css/lana-email-logger-admin.css
r2642710 r2923581 8 8 body.admin_page_lana-email-view #poststuff #post-body-content pre { 9 9 font-family: inherit; 10 overflow: auto; 10 11 } 11 12 -
lana-email-logger/trunk/includes/class-lana-email-logger-logs-list-table.php
r2642710 r2923581 86 86 */ 87 87 public function column_cb( $item ) { 88 return sprintf( '<input type="checkbox" name="lana_email_logger_log[]" value="%s" />', $item->id);88 return sprintf( '<input type="checkbox" name="lana_email_logger_log[]" value="%s" />', esc_attr( $item->id ) ); 89 89 } 90 90 … … 100 100 $log_view_url = esc_url( admin_url( 'admin.php?page=lana-email-view.php&id=' . $item->id ) ); 101 101 102 return sprintf( '<a href="%s">#%s – %s</a>', $log_view_url, $item->id, $item->subject);102 return sprintf( '<a href="%s">#%s – %s</a>', $log_view_url, esc_html( $item->id ), esc_html( $item->subject ) ); 103 103 } 104 104 … … 121 121 $user_edit_url = esc_url( admin_url( 'user-edit.php?user_id=' . $user->ID ) ); 122 122 123 return sprintf( '<a href="%s">%s – %s</a>', $user_edit_url, $user->user_login, $user->user_email);123 return sprintf( '<a href="%s">%s – %s</a>', $user_edit_url, esc_html( $user->user_login ), esc_html( $user->user_email ) ); 124 124 } 125 125 … … 132 132 */ 133 133 public function column_email_to( $item ) { 134 return $item->email_to;134 return esc_html( $item->email_to ); 135 135 } 136 136 … … 150 150 $date_content = sprintf( __( '%s ago', 'lana-email-logger' ), human_time_diff( strtotime( $item->date ), current_time( 'timestamp' ) ) ); 151 151 152 return sprintf( '<time title="%s">%s</time>', $date_title, $date_content);152 return sprintf( '<time title="%s">%s</time>', esc_attr( $date_title ), esc_html( $date_content ) ); 153 153 } 154 154 -
lana-email-logger/trunk/lana-email-logger.php
r2740125 r2923581 2 2 /** 3 3 * Plugin Name: Lana Email Logger 4 * Plugin URI: http ://lana.codes/lana-product/lana-email-logger/4 * Plugin URI: https://lana.codes/product/lana-email-logger/ 5 5 * Description: Logs all emails sent by WordPress. 6 * Version: 1. 0.26 * Version: 1.1.0 7 7 * Author: Lana Codes 8 * Author URI: http ://lana.codes/8 * Author URI: https://lana.codes/ 9 9 * Text Domain: lana-email-logger 10 10 * Domain Path: /languages … … 12 12 13 13 defined( 'ABSPATH' ) or die(); 14 define( 'LANA_EMAIL_LOGGER_VERSION', '1. 0.2' );14 define( 'LANA_EMAIL_LOGGER_VERSION', '1.1.0' ); 15 15 define( 'LANA_EMAIL_LOGGER_DIR_URL', plugin_dir_url( __FILE__ ) ); 16 16 define( 'LANA_EMAIL_LOGGER_DIR_PATH', plugin_dir_path( __FILE__ ) ); … … 450 450 451 451 <hr/> 452 <a href="<?php echo esc_url( 'http ://lana.codes/' ); ?>" target="_blank">452 <a href="<?php echo esc_url( 'https://lana.codes/' ); ?>" target="_blank"> 453 453 <img src="<?php echo esc_url( LANA_EMAIL_LOGGER_DIR_URL . '/assets/img/plugin-header.png' ); ?>" 454 454 alt="<?php esc_attr_e( 'Lana Codes', 'lana-email-logger' ); ?>"/> … … 607 607 global $wpdb; 608 608 609 $email_to = $mail['to'];610 $subject = $mail['subject'];609 $email_to = sanitize_email( $mail['to'] ); 610 $subject = sanitize_text_field( $mail['subject'] ); 611 611 $message = wp_strip_all_tags( $mail['message'] ); 612 612 $headers = $mail['headers']; -
lana-email-logger/trunk/readme.txt
r2740125 r2923581 1 1 === Lana Email Logger === 2 2 Contributors: lanacodes 3 Donate link: https://www.paypal.com/donate/?hosted_button_id=F34PNECNYHSA4 3 4 Tags: email, wp mail, send email, log email, logger 4 5 Requires at least: 4.0 5 Tested up to: 6. 06 Stable tag: 1. 0.26 Tested up to: 6.2 7 Stable tag: 1.1.0 7 8 Requires PHP: 5.3 8 9 License: GPLv2 or later … … 16 17 17 18 = Lana Codes = 18 [Lana Email Logger](http ://lana.codes/lana-product/lana-email-logger/)19 [Lana Email Logger](https://lana.codes/product/lana-email-logger/) 19 20 20 21 == Installation == … … 38 39 39 40 = Lana Codes = 40 [Support](http ://lana.codes/contact/)41 [Support](https://lana.codes/contact/) 41 42 42 43 = WordPress Forum = … … 49 50 50 51 == Changelog == 52 53 = 1.1.0 = 54 * security (CVE-2023-3166): fixed stored XSS vulnerability (thanks to Alex Thomas) 55 * bugfix email view message overflow 51 56 52 57 = 1.0.2 = … … 61 66 == Upgrade Notice == 62 67 68 = 1.1.0 = 69 This version fixes a security vulnerability. Upgrade recommended. 70 63 71 = 1.0.2 = 64 72 This version fixes settings link.
Note: See TracChangeset
for help on using the changeset viewer.