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
This commit is contained in:
kojak711 2015-10-29 19:32:23 +00:00
parent 211ab12615
commit 6ca9fd7958

View File

@ -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 );