From 59be4e796441e494f25b18ece7438dbf02442e47 Mon Sep 17 00:00:00 2001 From: yehudah Date: Sat, 24 Aug 2019 22:08:56 +0000 Subject: security + multiple replyTo addreses --- .../PostmanEmailLogController.php | 8 +++---- .../Postman-Email-Log/PostmanEmailLogService.php | 26 ++++++++++++---------- Postman/Postman-Email-Log/PostmanEmailLogView.php | 6 ++--- Postman/Postman-Mail/Zend-1.12.10/Mail.php | 15 +++++++++++-- Postman/PostmanUtils.php | 9 ++++++++ 5 files changed, 43 insertions(+), 21 deletions(-) diff --git a/Postman/Postman-Email-Log/PostmanEmailLogController.php b/Postman/Postman-Email-Log/PostmanEmailLogController.php index d22b265..2df2377 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogController.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogController.php @@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } -require_once dirname(__DIR__) . '/PostmanEmailLogs.php'; +require_once dirname(__DIR__) . '/PostmanLogFields.php'; require_once 'PostmanEmailLogService.php'; require_once 'PostmanEmailLogView.php'; @@ -82,7 +82,7 @@ class PostmanEmailLogController { // get the email address of the recipient from the HTTP Request $postid = $this->getRequestParameter( 'email' ); if ( ! empty( $postid ) ) { - $meta_values = PostmanEmailLogs::get_data( $postid ); + $meta_values = PostmanLogFields::get_instance()->get( $postid ); if ( isset( $_POST['mail_to'] ) && ! empty( $_POST['mail_to'] ) ) { $emails = explode( ',', $_POST['mail_to'] ); @@ -211,7 +211,7 @@ class PostmanEmailLogController { return; } - $meta_values = PostmanEmailLogs::get_data( $postid ); + $meta_values = PostmanLogFields::get_instance()->get( $postid ); // https://css-tricks.com/examples/hrs/ print '