diff --git a/api/BusinessLogic/Emails/BasicEmailSender.php b/api/BusinessLogic/Emails/BasicEmailSender.php index 8ab1c37d..d29f34af 100644 --- a/api/BusinessLogic/Emails/BasicEmailSender.php +++ b/api/BusinessLogic/Emails/BasicEmailSender.php @@ -10,7 +10,8 @@ use PHPMailer; class BasicEmailSender extends \BaseClass implements EmailSender { function sendEmail($emailBuilder, $heskSettings, $modsForHeskSettings, $sendAsHtml) { - if (preg_match("/\n|\r|\t|%0A|%0D|%08|%09/", $emailBuilder->to . $emailBuilder->subject)) { + $toEmails = implode(',', $emailBuilder->to); + if (preg_match("/\n|\r|\t|%0A|%0D|%08|%09/", $toEmails . $emailBuilder->subject)) { return false; } diff --git a/api/autoload.php b/api/autoload.php index 0f14ff20..88c675b6 100644 --- a/api/autoload.php +++ b/api/autoload.php @@ -23,4 +23,17 @@ require_once(__DIR__ . '/../inc/custom_fields.inc.php'); // Load the ApplicationContext $builder = new \DI\ContainerBuilder(); -$applicationContext = $builder->build(); \ No newline at end of file +$applicationContext = $builder->build(); + +// Fix for getallheaders() on PHP-FPM and nginx +if (!function_exists('getallheaders')) { + function getallheaders() { + $headers = array(); + foreach ($_SERVER as $name => $value) { + if (substr($name, 0, 5) == 'HTTP_') { + $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; + } + } + return $headers; + } +} \ No newline at end of file diff --git a/build.php b/build.php index 1d8d87d6..1822ee00 100644 --- a/build.php +++ b/build.php @@ -1,4 +1,4 @@
-

You need to be running HESK 2.7.3 to install Mods for HESK. You currently have HESK .

+

You need to be running HESK to install Mods for HESK. You currently have HESK .

diff --git a/install/migrations/core.php b/install/migrations/core.php index f52740e7..6c7980d8 100644 --- a/install/migrations/core.php +++ b/install/migrations/core.php @@ -218,5 +218,6 @@ function getAllMigrations() { 161 => new UpdateMigration('3.2.2', '3.2.1', 161), 162 => new UpdateMigration('3.2.3', '3.2.2', 162), 163 => new UpdateMigration('3.2.4', '3.2.3', 163), + 164 => new UpdateMigration('3.2.5', '3.2.4', 164), ); } \ No newline at end of file