From 6a7336b7cd29d8cd57dc5f3ce914fb597ad44172 Mon Sep 17 00:00:00 2001 From: Anxhelo Lushka Date: Thu, 15 Mar 2018 16:49:13 +0100 Subject: [PATCH] Update form.php --- form.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/form.php b/form.php index 9131d96..fb97873 100644 --- a/form.php +++ b/form.php @@ -8,13 +8,6 @@ if (array_key_exists('to', $_POST)) { $msg = ''; $email = ''; - //Apply some basic validation and filtering to the subject - if (array_key_exists('subject', $_POST)) { - $subject = substr(strip_tags($_POST['subject']), 0, 255); - } else { - $subject = 'No subject given'; - } - //Apply some basic validation and filtering to the name if (array_key_exists('name', $_POST)) { //Limit length and strip HTML tags