]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/html_mail_functions.php
Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / libs / html_mail_functions.php
index 62c13a1a9bb0409721159789f0e129c2850a2f84..e891c061bc59483ddbf8484b5f9903a1cc0f25d1 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -59,7 +59,8 @@ function checkHtmlTags ($html) {
                $check = str_replace('/', '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
                        // Invalid tag found
-                       return '';
+                       $html = '';
+                       break;
                } // END - if
                $test = substr($test, strpos($test, '>') + 1);
        } // END - while
@@ -148,7 +149,7 @@ function insertUrlsIntoHtml ($text) {
        } // END - foreach
 
        // Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
-       return preCompileCode(str_replace(chr(10), "<br />\n", $text));
+       return preCompileCode(str_replace(PHP_EOL, '<br />' . PHP_EOL, $text));
 }
 
 // [EOF]