mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Fix $mail_to format (Adding missing ">" at end) (#284)
* Fix $mail_to format (Adding missing ">" at end) * Update CHANGELOG.md
This commit is contained in:
parent
4ec64ec1ff
commit
6f00aa0967
@ -6,6 +6,7 @@
|
|||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release v2.1.5-2023.09 🎉
|
- Release v2.1.5-2023.09 🎉
|
||||||
|
- Fix $mail_to format (Adding missing ">" at end) [\#284](https://github.com/torrentpier/torrentpier-lts/pull/284) ([belomaxorka](https://github.com/belomaxorka), dchistyakov)
|
||||||
- Added missing EXCLUDED_USERS_CSV in tr_stats.php [\#283](https://github.com/torrentpier/torrentpier-lts/pull/283) ([belomaxorka](https://github.com/belomaxorka))
|
- Added missing EXCLUDED_USERS_CSV in tr_stats.php [\#283](https://github.com/torrentpier/torrentpier-lts/pull/283) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added support 7z archives [\#282](https://github.com/torrentpier/torrentpier-lts/pull/282) ([belomaxorka](https://github.com/belomaxorka))
|
- Added support 7z archives [\#282](https://github.com/torrentpier/torrentpier-lts/pull/282) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added support bmp images in BBCode [\#279](https://github.com/torrentpier/torrentpier-lts/pull/279) ([belomaxorka](https://github.com/belomaxorka))
|
- Added support bmp images in BBCode [\#279](https://github.com/torrentpier/torrentpier-lts/pull/279) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
@ -26,6 +26,12 @@ function smtpmail($mail_to, $subject, $message, $headers = '')
|
|||||||
{
|
{
|
||||||
global $bb_cfg;
|
global $bb_cfg;
|
||||||
|
|
||||||
|
// Fix $mail_to format (Adding missing ">" at end) | https://torrentpier.com/threads/otpravka-pisem-cherez-smtp.41135/page-4#post-85044
|
||||||
|
if (preg_match('%<(.+)>%smi', $mail_to, $regs))
|
||||||
|
{
|
||||||
|
$mail_to = $regs[1];
|
||||||
|
}
|
||||||
|
|
||||||
// Fix any bare linefeeds in the message to make it RFC821 Compliant.
|
// Fix any bare linefeeds in the message to make it RFC821 Compliant.
|
||||||
$message = preg_replace("#(?<!\r)\n#si", "\r\n", $message);
|
$message = preg_replace("#(?<!\r)\n#si", "\r\n", $message);
|
||||||
|
|
||||||
@ -180,4 +186,4 @@ function smtpmail($mail_to, $subject, $message, $headers = '')
|
|||||||
fclose($socket);
|
fclose($socket);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user