Updated SVG handling, gracefully fix broken base64-encoded messages, also close XSS...
[squirrelmail.git] / class / deliver / Deliver_IMAP.class.php
index ce53a05a04f2d24c6dccd3ad4b924e30ba123512..648e8fba558f54f3e6003cbaa4ca8d3a4755e154 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Delivery backend for the Deliver class.
  *
- * @copyright © 1999-2009 The SquirrelMail Project Team
+ * @copyright 1999-2019 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -52,7 +52,10 @@ class Deliver_IMAP extends Deliver {
      *
      */
     function send_mail($message, $header, $boundary, $stream=false, 
-                       &$raw_length, $folder) {
+                       &$raw_length, $folder=NULL) {
+
+        if (is_null($folder))
+            die('Internal error. Cannot pass NULL folder name to Deliver_IMAP::send_mail()');
 
         // write the body without providing a stream so we
         // can calculate the final length - after this call,