mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Extra checks added and mail subject line check.
This commit is contained in:
@@ -823,6 +823,7 @@ class e107Email extends PHPMailer
|
|||||||
// $eml['body'] = ($tp->toEmail($tmpl['header']). str_replace('{BODY}', $eml['body'], $tmpl['body']). $tp->toEmail($tmpl['footer']));
|
// $eml['body'] = ($tp->toEmail($tmpl['header']). str_replace('{BODY}', $eml['body'], $tmpl['body']). $tp->toEmail($tmpl['footer']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->Subject = str_replace("'", "'", $this->Subject);
|
||||||
|
|
||||||
// Perform Override from template.
|
// Perform Override from template.
|
||||||
foreach($this->overrides as $k=>$v)
|
foreach($this->overrides as $k=>$v)
|
||||||
|
@@ -1380,6 +1380,11 @@ class e_media
|
|||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
if(empty($src))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(is_string($opts))
|
if(is_string($opts))
|
||||||
{
|
{
|
||||||
parse_str($opts,$opts);
|
parse_str($opts,$opts);
|
||||||
|
Reference in New Issue
Block a user