From 6ca9fd7958d796178a6eb209d5b13ce314e6a043 Mon Sep 17 00:00:00 2001 From: kojak711 Date: Thu, 29 Oct 2015 19:32:23 +0000 Subject: [PATCH] added stripslashes to the subject and body git-svn-id: https://plugins.svn.wordpress.org/send-email-from-admin/trunk@1275754 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- send-email-from-admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/send-email-from-admin.php b/send-email-from-admin.php index 268fad8..f82be87 100644 --- a/send-email-from-admin.php +++ b/send-email-from-admin.php @@ -94,8 +94,8 @@ function sefa_plugin_main() { // get the posted form values $sefa_recipient_emails = isset( $_POST['sefa_recipient_emails'] ) ? trim($_POST['sefa_recipient_emails']) : ''; - $sefa_subject = isset( $_POST['sefa_subject'] ) ? trim($_POST['sefa_subject']) : ''; - $sefa_body = isset( $_POST['sefa_body'] ) ? nl2br($_POST['sefa_body']) : ''; + $sefa_subject = isset( $_POST['sefa_subject'] ) ? stripslashes(trim($_POST['sefa_subject'])) : ''; + $sefa_body = isset( $_POST['sefa_body'] ) ? stripslashes(nl2br($_POST['sefa_body'])) : ''; $sefa_group_email = isset( $_POST['sefa_group_email'] ) ? trim($_POST['sefa_group_email']) : 'no'; $recipients = explode( ',',$sefa_recipient_emails );