diff --git a/includes/admin.php b/includes/admin.php
index c0499f6..8519a91 100755
--- a/includes/admin.php
+++ b/includes/admin.php
@@ -67,7 +67,7 @@ public function __construct()
*/
public function init()
{
- $sitename = strtolower($_SERVER['SERVER_NAME']);
+ $sitename = sanitize_text_field(strtolower($_SERVER['SERVER_NAME']));
if (substr($sitename, 0, 4) === 'www.') {
$sitename = substr($sitename, 4);
}
@@ -166,7 +166,7 @@ public function admin_footer_js()
ajaxurl,
{
action: 'mailgun-test',
- _wpnonce: ''
+ _wpnonce: ''
}
)
.complete(function () {
@@ -386,7 +386,7 @@ public function ajax_send_test()
nocache_headers();
header('Content-Type: application/json');
- if (!current_user_can('manage_options') || !wp_verify_nonce($_GET['_wpnonce'])):
+ if (!current_user_can('manage_options') || !wp_verify_nonce(sanitize_text_field($_GET['_wpnonce']))):
die(
json_encode(array(
'message' => __('Unauthorized', 'mailgun'),
diff --git a/includes/lists-page.php b/includes/lists-page.php
index 1ca4dea..1719f79 100644
--- a/includes/lists-page.php
+++ b/includes/lists-page.php
@@ -46,7 +46,7 @@
-
+
@@ -54,7 +54,7 @@
-