mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Adjust exception message
This commit is contained in:
@@ -48,7 +48,7 @@ class NativeMailerHandler extends MailHandler
|
|||||||
{
|
{
|
||||||
foreach ((array) $headers as $header) {
|
foreach ((array) $headers as $header) {
|
||||||
if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) {
|
if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) {
|
||||||
throw new \InvalidArgumentException('headers are not allowed to contain newline characters!');
|
throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons');
|
||||||
}
|
}
|
||||||
$this->headers[] = $header;
|
$this->headers[] = $header;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user