summaryrefslogtreecommitdiff
path: root/Postman/PostmanWpMail.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/PostmanWpMail.php')
-rw-r--r--Postman/PostmanWpMail.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Postman/PostmanWpMail.php b/Postman/PostmanWpMail.php
index 66b3279..85f3ebd 100644
--- a/Postman/PostmanWpMail.php
+++ b/Postman/PostmanWpMail.php
@@ -1,5 +1,7 @@
<?php
-
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
if ( ! class_exists( 'PostmanWpMail' ) ) {
/**
@@ -75,7 +77,7 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
$id = md5(uniqid(time()));
if (isset($_SERVER["SERVER_NAME"])) {
- $hostName = $_SERVER["SERVER_NAME"];
+ $hostName = sanitize_text_field($_SERVER["SERVER_NAME"]);
} else {
$hostName = php_uname('n');
}