1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 14:46:46 +02:00

Fix the exception message

This commit is contained in:
Christophe Coevoet
2015-01-07 09:45:12 +01:00
parent 17f651bb96
commit 0da47a8d93

View File

@@ -145,7 +145,7 @@ class NativeMailerHandler extends MailHandler
public function setEncoding($encoding) public function setEncoding($encoding)
{ {
if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) { if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) {
throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection'); throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection');
} }
$this->encoding = $encoding; $this->encoding = $encoding;