1
0
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:
Jordi Boggiano
2013-02-13 17:08:18 +01:00
parent 72fd8059f2
commit 458daf3040

View File

@@ -48,7 +48,7 @@ class NativeMailerHandler extends MailHandler
{
foreach ((array) $headers as $header) {
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;
}