X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=18419e3aa7e2eb937d2cacfa349439347c363f7a;hb=3df5cfd765d32de200a4db2a21a04cb2fde40b23;hp=3d08472af546526b408f64228c395a90d0c9a626;hpb=e1653405d28923c78b2e292125306ccf61138f24;p=mailer.git
diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php
index 3d08472af5..18419e3aa7 100644
--- a/inc/libs/html_mail_functions.php
+++ b/inc/libs/html_mail_functions.php
@@ -32,11 +32,11 @@
************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
+
//
function HTML_ADD_VALID_TAGS()
{
@@ -155,8 +155,8 @@ function HTML_INSERT_URLS($text)
$text .= $part;
}
- // Replace new-lines agains
-s and finally compile possible own HTML tags out...
- return COMPILE_CODE(str_replace("\n", "
\n", $text));
+ // Replace new-lines agains
-s and finally compile possible own HTML tags out...
+ return COMPILE_CODE(str_replace("\n", "
\n", $text));
}
//
function SEND_HTML_EMAIL($TO, $SUBJECT, $MSG, $FROM)