Jelajahi Sumber

Fix the exception message

Christophe Coevoet 11 tahun lalu
induk
melakukan
0da47a8d93
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Monolog/Handler/NativeMailerHandler.php

+ 1 - 1
src/Monolog/Handler/NativeMailerHandler.php

@@ -145,7 +145,7 @@ class NativeMailerHandler extends MailHandler
     public function setEncoding($encoding)
     {
         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;