Guys I changed these lines in /includes/functions_messenger.php
Code: Select all
$this->msg = str_replace("\r\n", "\n", $this->msg);
// We now try and pull a subject from the email body ... if it exists,
// do this here because the subject may contain a variable
$drop_header = '';
$match = array();
if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match))
{
$this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
$drop_header .= '[\r\n]*?' . preg_quote($match[1], '#');
}
else
{
$this->subject = (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
}
to these lines
Code: Select all
// Replace Windows line endings with Unix line endings
$this->msg = str_replace("\r\n", "\n", $this->msg);
// Extract the subject from the email body, if it exists
$drop_header = '';
$match = array();
if (preg_match('#<title>(.*?)</title>#i', $this->msg, $match)) {
$this->subject = (trim($match[1]) != '') ? trim($match[1]) : (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
$drop_header .= '[\r\n]*?' . preg_quote($match[0], '#');
} else {
$this->subject = (($this->subject != '') ? $this->subject : $user->lang['NO_EMAIL_SUBJECT']);
}
// Remove the subject from the email body
$this->msg = preg_replace('#'.$drop_header.'#', '', $this->msg);
Will there be any side effects?