1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Cleaned empty $_POST values. Additional options for log file creation added.

This commit is contained in:
Cameron
2018-01-25 13:38:29 -08:00
parent dc745adc98
commit 573ea978b7
3 changed files with 59 additions and 15 deletions

View File

@@ -61,9 +61,25 @@ $message = '';
$referrer = strip_tags(urldecode(html_entity_decode(varset($_SERVER['HTTP_REFERER'],''), ENT_QUOTES)));
$emailurl = ($source == 'referer') ? $referrer : SITEURL;
$comments = $tp->post_toHTML(varset($_POST['comment'],''), TRUE, 'retain_nl, emotes_off, no_make_clickable');
$author = $tp->post_toHTML(varset($_POST['author_name'],''),FALSE,'emotes_off, no_make_clickable');
$email_send = check_email(varset($_POST['email_send'],''));
$comments = '';
$author = '';
$email_send = '';
if(!empty($_POST['comment']))
{
$comments = $tp->post_toHTML($_POST['comment'], true, 'retain_nl, emotes_off, no_make_clickable');
}
if(!empty($_POST['author_name']))
{
$author = $tp->post_toHTML($_POST['author_name'], false,'emotes_off, no_make_clickable');
}
if(!empty($_POST['email_send']))
{
$email_send = check_email($_POST['email_send']);
}
if (isset($_POST['emailsubmit']))