Anxhelo Lushka
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
7 deletions
-
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 |
|
|
|