summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Postman/Postman-Email-Log/PostmanEmailLogView.php2
-rw-r--r--script/post-smtp-hooks.js15
2 files changed, 1 insertions, 16 deletions
diff --git a/Postman/Postman-Email-Log/PostmanEmailLogView.php b/Postman/Postman-Email-Log/PostmanEmailLogView.php
index 205235d..52cdd4d 100644
--- a/Postman/Postman-Email-Log/PostmanEmailLogView.php
+++ b/Postman/Postman-Email-Log/PostmanEmailLogView.php
@@ -373,7 +373,7 @@ class PostmanEmailLogView extends WP_List_Table {
$date = sprintf( _x( '%s ago', 'A relative time as in "five days ago"', 'post-smtp' ), $humanTime );
}
$meta_values = PostmanLogFields::get_instance()->get( $post->ID );
- $sent_to = array_map( 'sanitize_email', explode( ',' , $meta_values ['to_header'] [0] ) );
+ $sent_to = array_map( 'esc_html', explode( ',' , $meta_values ['to_header'] [0] ) );
$flattenedPost = array(
// the post title must be escaped as they are displayed in the HTML output
'sent_to' => implode( ', ', $sent_to ),
diff --git a/script/post-smtp-hooks.js b/script/post-smtp-hooks.js
deleted file mode 100644
index 092f024..0000000
--- a/script/post-smtp-hooks.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var Hook = {
- hooks: [],
-
- register: function ( name, callback ) {
- if( 'undefined' == typeof( Hook.hooks[name] ) )
- Hook.hooks[name] = []
- Hook.hooks[name].push( callback )
- },
-
- call: function ( name, arguments ) {
- if( 'undefined' != typeof( Hook.hooks[name] ) )
- for( i = 0; i < Hook.hooks[name].length; ++i )
- if( true != Hook.hooks[name][i]( arguments ) ) { break; }
- }
-} \ No newline at end of file