Skip to content

Commit

Permalink
Merge pull request #183 from JWardee/v2.1.2
Browse files Browse the repository at this point in the history
v2.1.2
  • Loading branch information
JWardee authored Jun 6, 2023
2 parents 06bfa7e + facaa22 commit 86f7120
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WpMailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Domain Path: /languages
Description: Logging your mail will stop you from ever losing your emails again! This fast, lightweight plugin (under 140kb in size!) is also useful for debugging or backing up your messages.
Author: James Ward
Version: 2.1.1
Version: 2.1.2
Author URI: https://jamesward.io
Donate link: https://paypal.me/jamesmward
*/
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: mail logging, email log, email logger, logging, email logging, mail, crm
Requires at least: 4.7
Tested up to: 6.2.2
Requires PHP: 7.4
Stable tag: 2.1.1
Stable tag: 2.1.2
License: GNU General Public License v3.0
License URI: https://raw.githubusercontent.com/JWardee/wp-mail-catcher/master/LICENSE
Donate link: https://paypal.me/jamesmward
Expand Down Expand Up @@ -94,6 +94,10 @@ Great! Please leave a note in our (GitHub tracker)

== Changelog ==

= 2.1.2 =

- Fix: Escaping no longer mangles exports

= 2.1.1 =

- Security: Fixed XSS vulnerability, reported by Alex Thomas of Wordfence
Expand Down
8 changes: 8 additions & 0 deletions src/Models/Logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ private static function dbResultTransform($results, $args = [])
$result['message'] = stripslashes(htmlspecialchars_decode($result['message']));
}

if (isset($result['subject'])) {
$result['subject'] = stripslashes(htmlspecialchars_decode($result['subject']));
}

if (isset($result['email_to'])) {
$result['email_to'] = stripslashes(htmlspecialchars_decode($result['email_to']));
}

if (!empty($result['attachments'])) {
$result['attachments'] = json_decode($result['attachments'], true);

Expand Down

0 comments on commit 86f7120

Please sign in to comment.